Text::Autoformat isn't perfect. I'm not using Text::Autoformat in a completely automated situation. I'm able to manually intervene and do any final tweaks to the text. Regardless, it makes my life much easier.

In fact, I'm not sure it can be perfect due to ambiguity with how many of us write. For example, given the following text:

> this text should be considered a single paragraph > that was hard wrapped such that not every line has a quote character.
We would want it to be formatted as:
> this text should be considered a single > paragraph that was hard wrapped such > that not every line has a quote character.
However, given this text:
> (Sir Galahad approaches the Bridgekeeper) Stop! What is your name? Sir Galahad of Camelot. > What is your quest? I seek the Grail. > What is your favorite color? Blue. No yellow...
we would want it to be formatted as:
> (Sir Galahad approaches the Bridgekeeper) > Stop! What is your name? Sir Galahad of Camelot. > What is your quest? I seek the Grail. > What is your favorite color? Blue. No yellow...
and not:
> (Sir Galahad approaches the Bridgekeeper) > Stop! What is your name? > Sir Galahad of Camelot. > What is your quest? > I seek the Grail. > What is your favorite color? > Blue. No yellow...
How is Text::Autoformat to tell the difference?

geoff


In reply to Re^2: Rewrapping Net::NNTP output by eieio
in thread Rewrapping Net::NNTP output by hacker

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.