PennController for IBEX › Forums › Support › preventing dashed sentence spillover / centering sentences › Reply To: preventing dashed sentence spillover / centering sentences
May 28, 2021 at 4:38 pm
#7009
Jeremy
Keymaster
Hi,
Try this:
newController("DashedSentence",{s:"This is a rather long sentence but hopefully this will be long enough that it should insert linebreaks into narrow containers"})
.css("white-space","nowrap")
.center()
.print()
.wait()
Note that since you don’t want any linebreak, your sentence might overflow horizontally from the page area if it is too long
Jeremy