View Issue Details
|0005809: The setText command reset the style of the text frame
|If text frame has been manually given some style when changing the text with the command setText the style is lost.
Natural behavior should change only text and don't touch anything else.
|Steps To Reproduce
|Create text frame named text1 with anytext (say "ha que coucou")
Change style to be centered and Font size 20pt
from script console
the style is back to size 12 pt sometime centered sometimes not.
|No tags attached.
Still happens with 22.214.171.124. I'm running Scribus on Windows XP.
I snagged on this while working on a numbering script that replaces text frames containing strings of zeroes (e.g. '000', '0000') with numbers.
The preservation of styles would ease the writing of text replacement scripts like these.