You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2009/09/22 14:01:54 UTC
svn commit: r817623 -
/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
Author: fmeschbe
Date: Tue Sep 22 12:01:54 2009
New Revision: 817623
URL: http://svn.apache.org/viewvc?rev=817623&view=rev
Log:
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
Modified:
felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
Modified: felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
URL: http://svn.apache.org/viewvc/felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java?rev=817623&r1=817622&r2=817623&view=diff
==============================================================================
--- felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java (original)
+++ felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java Tue Sep 22 12:01:54 2009
@@ -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 )