commit | 8e1627be0073bdc0300da0f795e234d9be293ebe | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Tue Sep 22 12:01:54 2009 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Tue Sep 22 12:01:54 2009 +0000 |
tree | d840c2782a6b92fb44cbee4e47ab86e396cbf13d | |
parent | 4c304ee644109888e220355879a3a1debbabc299 [diff] |
FELIX-1623 Write <br/> for line breaks otherwise IE will not break the lines because it seems to not honor the "white-space: pre" style git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@817623 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java index e90846c..a0e043c 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
@@ -696,6 +696,22 @@ } + // IE has an issue with white-space:pre in our case so, we write + // <br/> instead of [CR]LF to get the line break. This also works + // in other browsers. + public void println() + { + if ( doFilter ) + { + super.write( "<br/>", 0, 5 ); + } + else + { + super.println(); + } + } + + // write the character unmodified unless filtering is enabled and // the character is a "<" in which case < is written public void write( final int character )