|formatting - indentation following newline [message #1771825]
||Thu, 31 August 2017 06:30
| Susie Agerholm
Registered: April 2017
I have very trivial issue, but i'm running out of time to research it :)
I am writing a formatter - I need to newline and indent a tag, but I cannot get both commands to run in same action:
//this should newline and indent 5 spaces - but only NL happens:
visual.material.format.prepend[setNewLines(1, 1, 2); space = Strings.repeat(" ", 5)]
if I split the commands up they both run fine - but it i split command up like below only first one i called?
How do I fix it?
//works - is newlined
visual.material.format.prepend[setNewLines(1, 1, 2)]
/works - is indented
visual.material.format.prepend[space = Strings.repeat(" ", 5)]
Powered by FUDForum
. Page generated in 0.03654 seconds