Personal Video Database

English => Development => Topic started by: rick.ca on August 07, 2008, 07:51:59 pm

Title: Template Option "Replace"
Post by: rick.ca 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?
Title: Re: Template Option "Replace"
Post by: nostra 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.
Title: Re: Template Option "Replace"
Post by: rick.ca on October 17, 2008, 01:17:09 am
Thanks!