Bug 35043: Do not have \n or \t appear in PO files

This is a trick, so that we won't have to deal with \t in PO files.
\n is not a problem, but it seems consistent to use the same method for
both.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
This commit is contained in:
Jonathan Druart 2023-10-12 12:35:12 +02:00
parent b9258aa903
commit 8800c36faa
1 changed files with 6 additions and 4 deletions

View File

@ -100,15 +100,17 @@
[% ELSE %]
<option value=" ">Space ( )</option>
[% END %]
[% tab_char = '\t' %]
[% IF selected_separator == '\t' %]
<option value="\t" selected="selected">Tabulation (\t)</option>
<option value="\t" selected="selected">Tabulation ([% tab_char | html %])</option>
[% ELSE %]
<option value="\t">Tabulation (\t)</option>
<option value="\t">Tabulation ([% tab_char | html %])</option>
[% END %]
[% new_line_char = '\n' %]
[% IF selected_separator == '\n' %]
<option value="\n" selected="selected">New line (\n)</option>
<option value="\n" selected="selected">New line ([% new_line_char | html %])</option>
[% ELSE %]
<option value="\n">New line (\n)</option>
<option value="\n">New line ([% new_line_char | html %])</option>
[% END %]
[% END %]