summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authortkikuchi2006-01-08 08:18:15 +0000
committertkikuchi2006-01-08 08:18:15 +0000
commit4d3cae1c78b8ccadbe350040f980acb2ac347577 (patch)
tree268924ea48b7d8d66ab0ab8afc0b97a4ad3561d8 /admin
parentd78aad44e2519a312700f0947eaadbd13b32d21f (diff)
downloadmailman-4d3cae1c78b8ccadbe350040f980acb2ac347577.tar.gz
mailman-4d3cae1c78b8ccadbe350040f980acb2ac347577.tar.zst
mailman-4d3cae1c78b8ccadbe350040f980acb2ac347577.zip
templ2po.py normalization of '\r\n' to '\n'.
templ2pot.py ... associated change. templ2po.py ... bug fix.
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/bin/templ2po.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/bin/templ2po.py b/admin/bin/templ2po.py
index 4f4d91429..5f5c9d38f 100755
--- a/admin/bin/templ2po.py
+++ b/admin/bin/templ2po.py
@@ -77,7 +77,7 @@ def escape(s, eightbit):
def normalize(s, eightbit):
# This converts the various Python string types into a format that is
# appropriate for .po files, namely much closer to C style.
- lines = s.split('\n')
+ lines = s.splitlines()
if len(lines) == 1:
s = '"' + escape(s, eightbit) + '"'
else: