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
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
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