Skip Menu |

This queue is for tickets about the HTML-Format CPAN distribution.

Report information
The Basics
Id: 79175
Status: new
Priority: 0/
Queue: HTML-Format

People
Owner: Nobody in particular
Requestors: james_avera [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.10
Fixed in: (no value)



Html::FormatText produces the wrong indent on the first line if there was no <P> or other markup tag (other than <html> or <bodh>) prior to the first non-white text. If the body just begins with text, the first line will have zero indent, regardless of the 'leftmargin' setting. If the body starts with white space, then the first line will have a single space (again, regardless of 'leftmargin') EXAMPLES: perl -MHTML::FormatText -we 'print HTML::FormatText->format_string("\n\n<html><body>first<p>a para</p>final</body></html>\n", leftmargin=>3)' first a para final perl -MHTML::FormatText -we 'print HTML::FormatText->format_string("\n\n<html><body> first<p>a para</p>final</body></html>\n", leftmargin=>3)' first a para final (observed with perl v5.14.2)