fill(text : string) -> string Reformat the single paragraph in 'text' to fit in lines of no more than 'self.width' columns, and return a new string containing the entire wrapped paragraph.
(self, text)
| 359 | return self._wrap_chunks(chunks) |
| 360 | |
| 361 | def fill(self, text): |
| 362 | """fill(text : string) -> string |
| 363 | |
| 364 | Reformat the single paragraph in 'text' to fit in lines of no |
| 365 | more than 'self.width' columns, and return a new string |
| 366 | containing the entire wrapped paragraph. |
| 367 | """ |
| 368 | return "\n".join(self.wrap(text)) |
| 369 | |
| 370 | |
| 371 | # -- Convenience interface --------------------------------------------- |