add new line and line feed to xml

Origin commit data
------------------
Branch: ni/coolstream
Commit: 75bdf0f182
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-03-11 (Wed, 11 Mar 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2015-03-11 13:53:41 +01:00
parent 7a0e0ac896
commit 699d79c370
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, "&apos;");
break;
case 0x0a:
fprintf(out,"&#x0a;");
break;
case 0x0d:
fprintf(out,"&#x0d;");
break;
#if 0
case 0x81:
case 0x82:

View File

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