You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The trailing comments of an entry should really belong to the leading comments of the next entry.
importscaposer._valRight(Seq(first, second)) =Parser.parse(raw"""# commentmsgctxt "context1"msgid "aaa"msgstr "AAA"#, fuzzymsgctxt "context2"msgid "bbb"msgstr "BBB"""")
scala> first.asInstanceOf[SingularTranslation].otherComments // should be empty
res1:Seq[String] =List(#, fuzzy)
scala> second.asInstanceOf[SingularTranslation].ctxComments // should be non-empty
res2:Seq[String] =List()
In this example, the comment containing the fuzzy flag is parsed as part of the first entry, but it would be expected to be part of the second entry. (As tools should ignore fuzzy translations, it is important that the comment is matched with the correct entry.)
If you accept pull requests, I'd be happy to look into sending a fix.
Tested with 1.11.1 using Scala 2.11.12.
The text was updated successfully, but these errors were encountered:
The trailing comments of an entry should really belong to the leading comments of the next entry.
In this example, the comment containing the
fuzzy
flag is parsed as part of the first entry, but it would be expected to be part of the second entry. (As tools should ignore fuzzy translations, it is important that the comment is matched with the correct entry.)If you accept pull requests, I'd be happy to look into sending a fix.
Tested with 1.11.1 using Scala 2.11.12.
The text was updated successfully, but these errors were encountered: