Project

Profile

Help

Revision f8df8fb1

Added by Michael Kay almost 13 years ago

Fix bug 253097 - HTML output method loses #xD

View differences:

latest9.1/bj/net/sf/saxon/event/HTMLEmitter.java
318 318
                        writer.write(""");
319 319
                    } else if (c=='\n') {
320 320
                        writer.write("
");
321
                    } else if (c=='\t') {
322
                        writer.write("	");
323
                    } else if (c=='\r') {
324
                        writer.write("
");
321 325
                    }
322 326
                } else {
323 327
                    if (c=='<') {
......
326 330
                        writer.write("&gt;");  // changed to allow for "]]>"
327 331
                    } else if (c=='&') {
328 332
                        writer.write("&amp;");
333
                    } else if (c=='\r') {
334
                        writer.write("&#xD;");
329 335
                    }
330 336
                }
331 337

  

Also available in: Unified diff