You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juneau.apache.org by ja...@apache.org on 2018/03/04 01:57:28 UTC
[juneau] branch master updated: Fix issue with Javascript when
newlines not enabled.
This is an automated email from the ASF dual-hosted git repository.
jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git
The following commit(s) were added to refs/heads/master by this push:
new 3a852b6 Fix issue with Javascript when newlines not enabled.
3a852b6 is described below
commit 3a852b684f2c8bfb8b33a1eb010e18e5afcf860d
Author: JamesBognar <ja...@apache.org>
AuthorDate: Sat Mar 3 20:57:24 2018 -0500
Fix issue with Javascript when newlines not enabled.
---
.../src/main/java/org/apache/juneau/html/HtmlDocTemplateBasic.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/html/HtmlDocTemplateBasic.java b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/html/HtmlDocTemplateBasic.java
index 596f758..dfc74b1 100644
--- a/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/html/HtmlDocTemplateBasic.java
+++ b/juneau-core/juneau-marshall/src/main/java/org/apache/juneau/html/HtmlDocTemplateBasic.java
@@ -59,7 +59,7 @@ public class HtmlDocTemplateBasic implements HtmlDocTemplate {
public void script(HtmlDocSerializerSession session, HtmlWriter w, Object o) throws Exception {
int i = 0;
for (String s : session.getScript())
- w.sIf(i++ > 0).appendln(3, s);
+ w.sIf(i++ > 0).append(3, s).append('\n'); // Must always append a newline even if whitespace disabled!
}
@Override /* HtmlDocTemplate */
--
To stop receiving notification emails like this one, please contact
jamesbognar@apache.org.