mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Parse obsolete entries correctly
We need to remove the #~ prefix of each line, since it is re-added after wrapping, and because otherwise the comparison with entries from polib does not work.
This commit is contained in:
parent
99b3928e6f
commit
2041920ce0
@ -52,7 +52,10 @@ def parse_msg(lines):
|
|||||||
return ''
|
return ''
|
||||||
msg = lines[0][i:].strip('"')
|
msg = lines[0][i:].strip('"')
|
||||||
for i in range(1, len(lines)):
|
for i in range(1, len(lines)):
|
||||||
msg = msg + lines[i].strip('"')
|
j = lines[i].find('"')
|
||||||
|
if j < 0:
|
||||||
|
return ''
|
||||||
|
msg = msg + lines[i][j:].strip('"')
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user