handle empty comments correctly
since the lines in the parser have all newline characters removed, \s+ will not match empty comments. Added an example that makes other tests fail without this patch.
This commit is contained in:
8
test/fixtures/comment.po
vendored
8
test/fixtures/comment.po
vendored
@@ -19,3 +19,11 @@ msgstr ""
|
||||
#. Extracted comment
|
||||
msgid "Title, as plain text"
|
||||
msgstr "Attribut title, en tant que texte brut"
|
||||
|
||||
#
|
||||
#.
|
||||
#:
|
||||
#, fuzzy
|
||||
msgid "Empty comment"
|
||||
msgstr "Empty"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user