Package MeatEngine :: Package Widgets :: Module wordWrap
[hide private]
[frames] | no frames]

Module wordWrap

source code

Meat Engine Word Wrap code

Modular word wrapping routine

Functions [hide private]
 
fixedWidthFontWidthFunc(string)
to lay out text using a fixed width font, measure the text width in characters.
source code
 
wrap(string, paragraphWidth, strLenFunc=<function fixedWidthFontWidthFunc at 0x01368B70>, insertParagraphBreak=True) source code
 
unwrap(string)
reverses the wrap function - handy for reformatting text that's wrapped in an editor
source code