PDA

View Full Version : Problem with new line



Larhalt
September 27th, 2015, 15:25
I have this code

<string_charabilitylabel>
<anchored to="hitprob" position="right" offset="8,0"/>
<static>Hit \rProb</static>
<font>sheetlabelmini</font>
</string_charabilitylabel>

But in the charsheet I still have the text in one row. Could someone explain me where I'm wrong?

Trenloe
September 27th, 2015, 18:51
String controls (https://www.fantasygrounds.com/refdoc/stringcontrol.xcp) will allow the \n to be used to represent a new line if the stringcontrol is set to have <multilinespacing>. See the underlying textbasecontrol (https://www.fantasygrounds.com/refdoc/textbasecontrol.xcp) for the multilinespacing tag.

Larhalt
September 27th, 2015, 19:25
Thank you Trenloe, that did the trick. :)