http://bugzilla.spamassassin.org/show_bug.cgi?id=3154

           Summary: HTML::html_format() improvements
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Libraries
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I've made what I think are some improvements to html_format() (I'll attach
a patch).  What I've done:

* Separated html_format() into two functions, one for start tags and one
  for end tags.  Some end tags, like </P>, have formatting effects.

* Made "LI" translate into a newline rather than a space, since each list
  item starts out on it's own line

* "TABLE" start and "TR" end each translate to a single newline.

* Added the list start/end tags ("OL" and "UL") to the double-newline
  list, since they create a paragraph-break type effect.

* "HR" translates to "\n---\n", to make it more like how it's rendered
  by browsers.

So, how does all that sound?

Also, why are the double-newline tags tested with a regexp, but everything else
is tested with a series of string equalities?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to