summaryrefslogtreecommitdiff
path: root/entities.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-02-26 15:49:03 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-02-26 15:49:03 +0000
commit19ab45b5a53e4a7462ee459e3dc5d70d1706e137 (patch)
treee361adec249086e7021c8ce328bbd5056c961eb8 /entities.c
parentc482e261adb1c441f1a58d64122b9ef7b25131d0 (diff)
downloadlibxml2-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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/entities.c b/entities.c
index f92f0cf1..d108df85 100644
--- a/entities.c
+++ b/entities.c
@@ -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