Correctly escape apostrophes in strings on write using the IfcCharacterEncoder

This commit is contained in:
Thomas Krijnen
2012-10-09 19:54:35 +00:00
parent 2f500aa098
commit 8b11a1baf7
3 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ std::string IfcWriteIntegralArgument::toString(bool upper) const {
case Argument_STRING: {
std::string d = *(std::string*) data;
if ( upper ) d = IfcCharacterEncoder(d);
ss << '\'' << d << '\'';
ss << d;
break;
} case Argument_VECTOR_INT:
ss << "(";