Changeset 11411
- Timestamp:
- 12/03/08 21:35:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/open-external-format/src/org/armedbear/lisp/Stream.java
r11410 r11411 102 102 103 103 protected EolStyle eolStyle = platformEolStyle; 104 protected char eolChar = 0;104 protected char eolChar = (eolStyle == EolStyle.CR) ? '\r' : '\n'; 105 105 protected LispObject externalFormat = LispObject.NIL; 106 106 protected String encoding = null; … … 1884 1884 { 1885 1885 if (eolStyle != EolStyle.RAW) { 1886 for (int i = start; i ++ < end;)1886 for (int i = start; i < end; i++) 1887 1887 //###FIXME: the number of writes can be greatly reduced by 1888 1888 // writing the space between newlines as chunks. 1889 1889 _writeChar(chars[i]); 1890 } 1890 1891 } else 1892 writer.write(chars, start, end - start); 1891 1893 1892 writer.write(chars, start, end - start);1893 1894 int index = -1; 1894 1895 for (int i = end; i-- > start;)
Note: See TracChangeset
for help on using the changeset viewer.