grouped
Tries laying out this document into a single line by removing the contained Document.lineBreaks (and replacing them with spaces); if this does not fit the page, the document is laid out without any changes. This function is the key to layouts that adapt to available space nicely.
>>> (Document("hello") / "world").grouped()
hello world
Content copied to clipboard