diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-02-26 15:49:03 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-02-26 15:49:03 +0000 |
commit | 19ab45b5a53e4a7462ee459e3dc5d70d1706e137 (patch) | |
tree | e361adec249086e7021c8ce328bbd5056c961eb8 /entities.c | |
parent | c482e261adb1c441f1a58d64122b9ef7b25131d0 (diff) | |
download | libxml2-19ab45b5a53e4a7462ee459e3dc5d70d1706e137.tar.gz |
fixes again one of the problem raised by James Clark in #106788 Daniel
* entities.c: fixes again one of the problem raised by
James Clark in #106788
Daniel
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -822,6 +822,12 @@ xmlEncodeSpecialChars(xmlDocPtr doc, const xmlChar *input) { *out++ = 'o'; *out++ = 't'; *out++ = ';'; + } else if (*cur == '\r') { + *out++ = '&'; + *out++ = '#'; + *out++ = '1'; + *out++ = '3'; + *out++ = ';'; } else { /* * Works because on UTF-8, all extended sequences cannot |