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:
Julian Bäume
2014-06-19 17:04:03 +02:00
parent eeb1382dfb
commit 08e7db58b3
3 changed files with 26 additions and 4 deletions

View File

@@ -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"