Make sure that a template expansion ends with a ']'.

{{{
[template foo 1]
[fool]
}}}

was generating `1[fool]` - the template would be expanded but then when it
didn't match the `]` it would fail and just get copied to the output. This
change checks for `]` before expanding the template. So it now generates
`[fool]` which is an improvement.

I'm not including a version switch as I see this as a plain bug fix - I can't
imagine this change ever being anything but beneficial.

[SVN r54816]
This commit is contained in:
Daniel James 2009-07-08 21:41:00 +00:00
parent 2cc564cf46
commit a836148af0

@ -1 +1 @@
Subproject commit a087316841db0dc3a6908270eadc5282c5b3413e
Subproject commit 0ef306d4852121e23f0784c9b5163377258de5af