Draft: Fix handling of double quote in shapestring

This commit is contained in:
Roy-043
2022-10-05 10:57:48 +02:00
committed by GitHub
parent bb94a0ddea
commit 20c582da9d

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)