#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Sat, 07 Dec 2019 17:16:07 +0100
changeset 8914 a87a429d0a2f
parent 8913 2fe58f885d89
child 8915 ae15b497cb81
#BUGFIX by cg class: ResourcePack changed: #stringWithCRs:withArguments: FIX: do not loose an explicit final backslash-CR (i.e. resources string:'foo:\' without xlation.
ResourcePack.st
--- 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
 
     "