Plan 9 from Bell Labs’s /usr/web/sources/contrib/gabidiaz/root/sys/src/cmd/perl/lib/Text/TabsWrap/CHANGELOG

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


= 2001/09/29

Philip Newton <[email protected]> sent in a clean patch that
added support for defining words differently; that prevents 
Text::Wrap from untainting strings; and that fixes a documentation
bug.

So that fill.t can be used in the version included in the perl
distribution, fill.t no longer uses File::Slurp.

Both Sweth Chandramouli <[email protected]> and Drew Degentesh 
<[email protected]> both objected to the automatic unexpand
that Text::Wrap does on its results.  Drew sent a patch which
has been integrated.

Way back in '97, Joel Earl <[email protected]> asked that
it be possible to use a line separator other than \n when
adding new lines.  There is now support for that.

= 2001/01/30

Bugfix by Michael G Schwern <[email protected]>: don't add extra
whitespace when working one an array of input (as opposed to a 
single string).

Performance rewrite: use m/\G/ rather than s///.

You can now specify that words that are too long to wrap can simply
overflow the line.  Feature requested by James Hoagland 
<[email protected]> and by John Porter <[email protected]>.

Documentation changes from Rich Bowen <[email protected]>.

= 1998/11/29

Combined Fill.pm into Wrap.pm.  It appears there are versions of
Wrap.pm with fill in them.

= 1998/11/28

Over the last couple of years, many people sent in various
rewrites of Text::Wrap.  I should have done something about
updating it long ago.  If someone wants to take it over from
me, discuss it in perl-porters.  I'll be happy to hand it
over.

Anyway, I have a bunch of people to thank.  I didn't
use what any of them sent in, but I did take ideas from
all of them.  Many sent in complete new implamentations.

	Ivan Brawley <[email protected]> 

	Jacqui Caren <[email protected]>

	Jeff Kowalski <[email protected]>

	Allen Smith <[email protected]>

	Sullivan N. Beck <[email protected]>

The end result is a very slight change in the API.  There
is now an additional package variable: $Text::Wrap::huge.
When $huge is set to 'die' then long words will cause 
wrap() to die.  When it is set to 'wrap', long words will
be wrapped.  The default is 'wrap'.

<shout>LONG WORDS WILL NOW BE WRAPPED BY DEFAULT</shout>.  
This is a change in behavior.

At the bottom of Text::Wrap, there was a function (fill())
sitting there unpublished.  There was a note that Tim Pierce
had a faster version, but a search on CPAN failed to turn it
up.  Text::Fill is now available.


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].