Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.inc |
— | — | @@ -152,6 +152,11 @@ |
153 | 153 | if (($i == strlen($existing_template_text) - 1) || |
154 | 154 | ($c == '|' && $uncompleted_square_brackets == 0)) { |
155 | 155 | if ($field != null) { |
| 156 | + // if this was the last character in the template, append |
| 157 | + // this character |
| 158 | + if ($i == strlen($existing_template_text) - 1) { |
| 159 | + $field .= $c; |
| 160 | + } |
156 | 161 | // either there's an equals sign near the beginning or not - |
157 | 162 | // handling is similar in either way; if there's no equals |
158 | 163 | // sign, the index of this field becomes the key |