Skip to content
Snippets Groups Projects
Commit a70fdcd2 authored by Jean-Noël Avila's avatar Jean-Noël Avila
Browse files

fr: switch to one line

parent 143d52a5
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -5,7 +5,7 @@ import re ...@@ -5,7 +5,7 @@ import re
import sys import sys
def main (f): def main (f):
po = polib.pofile(f) po = polib.pofile(f, wrapwidth=0)
for entry in po: for entry in po:
if (re.fullmatch(r'-[-a-z0-9[\]]+', entry.msgid)) \ if (re.fullmatch(r'-[-a-z0-9[\]]+', entry.msgid)) \
...@@ -19,6 +19,7 @@ def main (f): ...@@ -19,6 +19,7 @@ def main (f):
if 'fuzzy' in entry.flags: if 'fuzzy' in entry.flags:
entry.flags.remove('fuzzy') entry.flags.remove('fuzzy')
entry.previous_msgid = None entry.previous_msgid = None
po.save(f) po.save(f)
if __name__ == '__main__': if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment