fixed outline refresh bug
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / phpdoc / SingleCharReader.java
index 87340b4..6bd996e 100644 (file)
@@ -54,7 +54,11 @@ public abstract class SingleCharReader extends Reader {
                StringBuffer buf= new StringBuffer();
                int ch;
                while ((ch= read()) != -1) {
-                       buf.append((char)ch);
+                   if (ch=='\n'||ch=='\r') {
+                     buf.append("<br>");
+                   } else {
+                         buf.append((char)ch);
+                   }
                }
                return buf.toString();
        }