Text::LineFold(3pm) | User Contributed Perl Documentation | Text::LineFold(3pm) |
Text::LineFold - Line Folding for Plain Text
use Text::LineFold; $lf = Text::LineFold->new(); # Fold lines $folded = $lf->fold($string, 'PLAIN'); $indented = $lf->fold(' ' x 8, ' ' x 4, $string); # Unfold lines $unfolded = $lf->unfold($string, 'FIXED');
Text::LineFold folds or unfolds lines of plain text. As it mainly focuses on plain text e-mail messages, RFC 3676 flowed format is also supported.
By the first style, following options may be specified for METHOD argument.
Second style is similar to "wrap()" in Text::Wrap. All lines are folded. INITIAL_TAB is inserted at beginning of paragraphs and SUBSEQUENT_TAB at beginning of other broken lines.
Following options may be specified for METHOD argument.
Please report bugs or buggy behaviors to developer.
CPAN Request Tracker: <http://rt.cpan.org/Public/Dist/Display.html?Name=Unicode-LineBreak>.
Consult $VERSION variable.
Unicode::LineBreak, Text::Wrap.
Copyright (C) 2009-2012 Hatuka*nezumi - IKEDA Soji <hatuka(at)nezumi.nu>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2019-02-14 | perl v5.28.1 |