From: Dave Mitchell Date: Thu, 21 Apr 2005 21:22:54 +0000 (+0000) Subject: [perl #34902] Text::Wrap::wrap() fails with non-space separator X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=818675a5006285acc41be05f4d63d56374ea5eca;p=p5sagit%2Fp5-mst-13.2.git [perl #34902] Text::Wrap::wrap() fails with non-space separator p4raw-id: //depot/perl@24273 --- diff --git a/lib/Text/TabsWrap/t/wrap.t b/lib/Text/TabsWrap/t/wrap.t index 369512d..8ff4217 100755 --- a/lib/Text/TabsWrap/t/wrap.t +++ b/lib/Text/TabsWrap/t/wrap.t @@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -@tests = (split(/\nEND\n/s, < is set in its own namespace without importing it. C starts its work by expanding all the tabs in its input into spaces. The last thing it does it to turn spaces back into tabs. If you do not want tabs in your results, set -C<$Text::Wrap::unexapand> to a false value. Likewise if you do not +C<$Text::Wrap::unexpand> to a false value. Likewise if you do not want to use 8-character tabstops, set C<$Text::Wrap::tabstop> to the number of characters you do want for your tabstops. If you want to separate your lines with something other than C<\n> -then set C<$Text::Wrap::seporator> to your preference. +then set C<$Text::Wrap::separator> to your preference. When words that are longer than C<$columns> are encountered, they are broken up. C adds a C<"\n"> at column C<$columns>.