add new line and line feed to xml

This commit is contained in:
Jacek Jendrzej
2015-03-11 13:53:41 +01:00
parent 798b6f4945
commit 75bdf0f182
2 changed files with 13 additions and 0 deletions

View File

@@ -139,6 +139,12 @@ int saveStringToXMLfile(FILE *out, const char *c, int /*withControlCodes*/)
case '\'':
fprintf(out, "'");
break;
case 0x0a:
fprintf(out,"
");
break;
case 0x0d:
fprintf(out,"
");
break;
#if 0
case 0x81:
case 0x82:

View File

@@ -96,6 +96,13 @@ namespace ZapitTools {
case '\'':
r += "'";
break;
case 0x0a:
r +="
";
break;
case 0x0d:
r +="
";
break;
default:
r += *s;
}