mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Escaped quotation marks in msgids.
This commit is contained in:
parent
d60c41afa9
commit
01e6e18303
@ -65,5 +65,6 @@ class MessageCatalogBuilder(Builder):
|
||||
pofile = open(path.join(self.outdir, '%s.pot' % section), 'w')
|
||||
pofile.write(POHEADER % self.config)
|
||||
for message in messages:
|
||||
message = message.replace(u'"', ur'\"')
|
||||
pomsg = u'msgid "%s"\nmsgstr ""\n\n' % message
|
||||
pofile.write(pomsg.encode('utf-8'))
|
||||
|
Loading…
Reference in New Issue
Block a user