git://git.phpeclipse.com
/
phpeclipse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
#1467296 patch for bug #1454529
[phpeclipse.git]
/
net.sourceforge.phpeclipse
/
src
/
net
/
sourceforge
/
phpdt
/
internal
/
corext
/
phpdoc
/
SingleCharReader.java
diff --git
a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/SingleCharReader.java
b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/SingleCharReader.java
index
87340b4
..
6bd996e
100644
(file)
--- a/
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/SingleCharReader.java
+++ b/
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/phpdoc/SingleCharReader.java
@@
-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();
}