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 <[email protected]>
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
[email protected].

Reply via email to