Spaces

guzmere
18 Apr 2013, 09:00
@ Pertex I'm sorry to bother you but last year you wrote me a small program for allowing me to have a certain number of empty spaces from the left edge of the screen before I could start my text and that worked beautiful. Alas in 5.4 it totally ignores the program. I was wondering if you could tell me the difference, pretty please. lol.
<function name="whitespaces" parameters="number" type="string"><![CDATA[
text = ""
for (x, 1, number) {
text = text+ " "
}
return ("<b>"+text+"</b>")
]]></function>

All I would have to write is whitespaces(number) + "text"
Thanks Terry. :D Happy Adventuring :D

Pertex
18 Apr 2013, 09:25
The output changed to html in Q5.4 so you can use this function now:


<function name="whitespaces" parameters="number" type="string"><![CDATA[
text = ""
for (x, 1, number, 1) {
text = text+"&nbsp;"
}
return (text)
]]></function>

guzmere
18 Apr 2013, 09:31
Brilliant, smashing, super, great, wonderful, soooooooooooooo many thanks. Such a little difference makes a world of greatness. :D Happy Adventuring :D Terry.