Author Topic: Template Option "Replace"  (Read 3644 times)

0 Members and 1 Guest are viewing this topic.

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Template Option "Replace"
« on: August 07, 2008, 07:51:59 pm »
The replace template option seems to ignore a space included as the first character of the target string. I often include a leading space to restrict a replacement to a whole words in a sentence. It can also be necessary in a direct replacement, like replace " -- " with "—". Am I missing something, or is there a another way to do this?

Offline nostra

  • Administrator
  • *****
  • Posts: 2852
    • View Profile
    • Personal Video Database
Re: Template Option "Replace"
« Reply #1 on: October 17, 2008, 01:15:25 am »
Sorry for the late reply. I have overlooked this thread :(
The template parser trims parameters of the replace option, so the spaces are not included.
You are right, it was a bad idea to do this. I'll fix the problem soon.
Gentlemen, you can’t fight in here! This is the War Room!

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: Template Option "Replace"
« Reply #2 on: October 17, 2008, 01:17:09 am »
Thanks!

 

anything