Did you know ... Search Documentation:
Pack print_table -- prolog/wrap_text.pl
PublicShow source

a line is represented as an atom in a list. It does not contain and end_of_line character at the end

supported break-points :

  • end_of_line character
  • whitespaces
  • hyphens
author
- Joost Geurts
license
- MIT License
 wrap_text(Length:int, Text:atom, Lines:list(atom)) is det
Succeeds if Text can be wrapped in Lines of Length. @throws failed_wrap/2 If Text cannot be wrapped within Length
 min_wrap_width(+Text:atom, -Width:int) is det
returns the minimal Width necessary to render Text