Content embedded via [[S51]] has a space embedded after it.

Options

I have some really heavy code which does some date calculations and outputs custom date strings; I have these stored in PageBuilder pages and embed them in the page via [[S51]] tags.

The problem is, embedding them this way results in an extra space being appended to the string, which is problematic in the middle of a sentence. For example:

<p>Thank you for joining us this [[S51:getDayName]], [[S1:first_name]]!<p>

...which becomes...

Thank you for joining us this Wednesday , John!

I can't really modify the wording of the sentence and make it sound natural. I feel like there might be something really obvious I'm missing, but I'm clueless at the moment. Anyone else come up with an idea for this already?

Tagged:

Comments

Categories