Skip to content

Commit f242ad4

Browse files
authored
Preserve leading/trailing spaces in comment lines
1 parent fbbb58e commit f242ad4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gp-res-filter/src/main/java/com/ibm/g11n/pipeline/resfilter/IOSStringsResource.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ public Bundle parse(InputStream in) throws IOException {
6262
String comment = line.substring(line.indexOf(COMMENT_BEGIN)+2);
6363
Boolean commentEndProcessed = false;
6464
while (!commentEndProcessed && line != null) {
65-
if (comment.endsWith(COMMENT_END)) {
66-
comment = comment.substring(0, comment.length()-2);
65+
if (comment.trim().endsWith(COMMENT_END)) {
66+
comment = comment.substring(0, comment.lastIndexOf(COMMENT_END));
6767
commentEndProcessed = true;
6868
}
6969
notes.add(comment);
7070
if (!commentEndProcessed) {
7171
line = reader.readLine();
72-
comment = line.trim();
72+
comment = line;
7373
}
7474
}
7575
} else if (commentIsGlobal && line.isEmpty()) {

0 commit comments

Comments
 (0)