Changeset 11401


Ignore:
Timestamp:
11/29/08 18:42:35 (12 years ago)
Author:
ehuelsmann
Message:

Fix character doubling issue and the end-of-line style being written.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/open-external-format/src/org/armedbear/lisp/FileStream.java

    r11395 r11401  
    293293                for (int i = start; i < end; i++) {
    294294                    char c = chars[i];
    295                     out.getWriter().write((byte)c);
    296295                    if (c == '\n') {
     296                        if (eolStyle == EolStyle.CRLF)
     297                            out.getWriter().write((byte)'\r');
    297298                        out.getWriter().write((byte)eolChar);
    298299                        charPos = 0;
Note: See TracChangeset for help on using the changeset viewer.