Aaron Powers
-
2002-05-27
- priority: 5 --> 1
Wrapping text is not very polite.
When you try to wrap a set of code, hitting "alt-w" or right-
click->"Wrap Text" will wrap right in the middle of a string.
i.e. if you try to wrap this:
System.out.println(" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15
17 18 19 20 21 22 23 24 25 26");
It will wrap right in any space on the line -- putting a line
break in the middle makes it invalid code, and won't compile
or save.
Fixing this is a bit complicated, but the two options are:
a) don't make line breaks in the middle of the string (non-
optimal)
b) if a line break happens in the middle of a string,
instert "+\n+" instead of just a \n