File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1414##############################################################################
1515# Modifications for Roundup:
1616# 1. commented out ITALES references
17- # 2. escape quotes in msgids
17+ # 2. escape quotes and line feeds in msgids
1818
1919"""Program to extract internationalization markup from Page Templates.
2020
4343#from ITALES import ITALESEngine
4444from roundup .cgi .TAL .TALDefs import TALESError
4545
46- __version__ = '$Revision: 1.4 $'
46+ __version__ = '$Revision: 1.5 $'
4747
4848pot_header = '''\
4949 # SOME DESCRIPTIVE TITLE.
@@ -305,7 +305,8 @@ def write(self, s):
305305 for filename , position in positions :
306306 outfile .write ('#: %s:%s\n ' % (filename , position [0 ]))
307307
308- outfile .write ('msgid "%s"\n ' % msgid .replace ('"' , '\\ "' ))
308+ outfile .write ('msgid "%s"\n '
309+ % msgid .replace ('"' , '\\ "' ).replace ("\n " , '\\ n"\n "' ))
309310 outfile .write ('msgstr ""\n ' )
310311 outfile .write ('\n ' )
311312
You can’t perform that action at this time.
0 commit comments