#BUGFIX by cg
class: ResourcePack
changed: #stringWithCRs:withArguments:
FIX: do not loose an explicit final backslash-CR
(i.e. resources string:'foo:\' without xlation.
--- a/ResourcePack.st Fri Dec 06 11:53:59 2019 +0100
+++ b/ResourcePack.st Sat Dec 07 17:16:07 2019 +0100
@@ -1533,8 +1533,8 @@
^ xlation withCRs expandPlaceholdersWith:argArray.
].
"/ try individual lines...
- collectedXLations := s withCRs asStringCollection
- collect:[:eachLine | self string:eachLine withArguments:argArray].
+ collectedXLations := s withCRs asStringCollection collect:[:eachLine | self string:eachLine withArguments:argArray].
+ (s endsWith:$\) ifTrue:[^ collectedXLations asString].
^ collectedXLations asStringWithoutFinalCR
"