Text::LineFold - Online Linux Manual PageSection : 3
Updated : 2022-01-21
Source : perl v5.34.0
Note : User Contributed Perl Documentation

NAMEText::LineFold − Line Folding for Plain Text

SYNOPSIS​ 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');

DESCRIPTIONText::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.

Public Interfacenew ([KEY => VALUE, ...]) Constructor. About KEY => VALUE pairs see config method. $self>config (KEY) $self>config ([KEY => VAL, ...]) Instance method. Get or update configuration. Following KEY => VALUE pairs may be specified. Charset => CHARSET Character set that is used to encode string. It may be string or MIME::Charset object. Default is "UTF−8". Language => LANGUAGE Along with Charset option, this may be used to define language/region context. Default is "XX". See also Context in Unicode::LineBreak option. Newline => STRING String to be used for newline sequence. Default is "\n". OutputCharset => CHARSET Character set that is used to encode result of fold()/unfold(). It may be string or MIME::Charset object. If a special value "_UNICODE_" is specified, result will be Unicode string. Default is the value of Charset option. TabSize => NUMBER Column width of tab stops. When 0 is specified, tab stops are ignored. Default is 8. BreakIndent CharMax ColMax ColMin ComplexBreaking EAWidth HangulAsAL LBClass LegacyCM Prep Urgent See Options in Unicode::LineBreak. $self>fold (STRING, [METHOD]) $self>fold (INITIAL_TAB, SUBSEQUENT_TAB, STRING, ...) Instance method. ​fold() folds lines of string STRING and returns it. Surplus SPACEs and horizontal tabs at end of line are removed, newline sequences are replaced by that specified by Newline option and newline is appended at end of text if it does not exist. Horizontal tabs are treated as tab stops according to TabSize option. By the first style, following options may be specified for METHOD argument. ``FIXED'' Lines preceded by ">" won't be folded. Paragraphs are separated by empty line. ``FLOWED'' "Format=Flowed; DelSp=Yes" formatting defined by RFC 3676. ``PLAIN'' Default method. All lines are folded. 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. $self>unfold (STRING, METHOD) Conjunct folded paragraphs of string STRING and returns it. Following options may be specified for METHOD argument. ``FIXED'' Default method. Lines preceded by ">" won't be conjuncted. Treat empty line as paragraph separator. ``FLOWED'' Unfold "Format=Flowed; DelSp=Yes" formatting defined by RFC 3676. ``FLOWEDSP'' Unfold "Format=Flowed; DelSp=No" formatting defined by RFC 3676.

BUGSPlease report bugs or buggy behaviors to developer. CPAN Request Tracker: <http://rt.cpan.org/Public/Dist/Display.html?Name=Unicode−LineBreak>.

VERSIONConsult $VERSION variable.

SEE ALSOUnicode::LineBreak, Text::Wrap.

AUTHORCopyright (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.
0
Johanes Gumabo
Data Size   :   19,423 byte
man-Text::LineFold.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 183,598
Visitor ID   :     :  
Visitor IP   :   3.128.168.176   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Text::LineFold.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Text::LineFold.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Text::LineFold.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|Text::LineFold.3pm|43|'br══─}─══ |'br══─}─══ )