felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r817623 - /felix/trunk/webconsole/src/main/java/org/apache/felix/webconsole/internal/misc/ConfigurationRender.java
Date Tue, 22 Sep 2009 12:01:54 GMT
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 &lt; is written
         public void write( final int character )



Mime
View raw message