Skip to content

Commit 8994498

Browse files
committed
Revised newline handling tests pass on Windows now
Issue: SPR-13503 (cherry picked from commit 311d4c9)
1 parent fcd155a commit 8994498

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-webmvc/src/test/java/org/springframework/web/servlet/view/freemarker/FreeMarkerMacroTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2015 the original author or authors.
2+
* Copyright 2002-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -326,6 +326,7 @@ private String getMacroOutput(String name) throws Exception {
326326

327327
// tokenize output and ignore whitespace
328328
String output = response.getContentAsString();
329+
output = output.replace("\r\n", "\n");
329330
return output.trim();
330331
}
331332

0 commit comments

Comments
 (0)