Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Module Text::Autoformat not working

by hippo (Bishop)
on Oct 26, 2015 at 11:11 UTC ( [id://1145943]=note: print w/replies, xml ) Need Help??


in reply to Module Text::Autoformat not working; perlbrew not installing

You are discarding the results of the formatting operation. Instead, store them as indicated in the synopsis:

$formatted = autoformat $formatted;

HTH

Update: link fix

Replies are listed 'Best First'.
Re^2: Module Text::Autoformat not working
by parv (Parson) on Oct 26, 2015 at 11:28 UTC

    No worky here; explicit lists & renumber options do not make any difference.

    # perl -MText::Autoformat -e 'print $Text::Autoformat::VERSION , "\n"' + ; cat p.pl ; echo ; perl p.pl 1.67

    Pod seems to be a mess. In "Synopsis", syntax is ...

    # Configuration... $formatted = autoformat $rawtext, { %options };

    ... later in "Bulleting and (re-)numbering" section, it is ...

    # Don't recognize Roman numerals or alphabetics as list markers. +.. autoformat { lists => 'number, bullet' }, $text;

    Addendum: Problems persists with Text::Autoformat 1.72, latest stable version.

      I see nothing wrong with your code. Unless we're both misreading the docs it looks to be a bug in the module to be added to the existing list :(

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1145943]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-23 05:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found