Merge pull request #7558 from Roy-043/Draft-Fix-handling-of-double-quote-in-shapestring

Draft: Fix handling of double quotes in shapestrings
This commit is contained in:
Yorik van Havre
2022-10-07 11:11:18 +02:00
committed by GitHub

View File

@@ -160,7 +160,8 @@ class ShapeStringTaskPanelCmd(ShapeStringTaskPanel):
def createObject(self):
"""Create object in the current document."""
dquote = '"'
String = dquote + self.form.leString.text() + dquote
String = self.form.leString.text()
String = dquote + String.replace(dquote, '\\"') + dquote
FFile = dquote + str(self.fileSpec) + dquote
Size = str(App.Units.Quantity(self.form.sbHeight.text()).Value)