mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Correctly escape apostrophes in strings on write using the IfcCharacterEncoder
This commit is contained in:
@@ -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 << "(";
|
||||
|
||||
Reference in New Issue
Block a user