개정판 9b08fa12
issue #1059: Ven_Flowmeter_H 표기 오류 수정
Change-Id: Idcaaeaac60a6864e7ba50fe7f6e38d78c7a6a2f2
HYTOS/HYTOS/Shapes/EngineeringCalloutTextItem.py | ||
---|---|---|
273 | 273 |
text.attrib['lengthAdjust'] = 'spacingAndGlyphs' |
274 | 274 |
text.attrib['xml:space'] = 'preserve' |
275 | 275 |
tokens = self.toPlainText().split('\n') |
276 |
if len(tokens) > 1:
|
|
276 |
if tokens:
|
|
277 | 277 |
for token in tokens: |
278 | 278 |
tspan = SubElement(text, 'tspan') |
279 | 279 |
tspan.attrib['x'] = "0" |
280 | 280 |
tspan.attrib['dy'] = str(self.font().pointSizeF() + 1) |
281 | 281 |
tspan.text = token |
282 |
else: |
|
283 |
text.text = self.toPlainText() |
|
284 | 282 |
|
285 | 283 |
text.attrib['alignment-baseline'] = 'hanging' # align left-top corner |
286 | 284 |
node.append(text) |
내보내기 Unified diff