]> granicus.if.org Git - libexpat/commitdiff
Use character references for #x9 and #xA
authorJames Clark <jjc@jclark.com>
Tue, 10 Feb 1998 01:44:29 +0000 (01:44 +0000)
committerJames Clark <jjc@jclark.com>
Tue, 10 Feb 1998 01:44:29 +0000 (01:44 +0000)
expat/xmlwf/xmlwf.c

index a7d64d87cda651cab372ad5f7702ccd32cfaed47..7a6f77cff2a8bbc0ff4a3d519f1bb55bb35c321e 100755 (executable)
@@ -46,8 +46,10 @@ static void characterData(void *userData, const char *s, int len)
     case '"':
       fputs("&quot;", fp);
       break;
-    case '\r':
-      fputs("&#13;", fp);
+    case 9:
+    case 10:
+    case 13:
+      fprintf(fp, "&#%d;", *s);
       break;
     default:
       putc(*s, fp);