https://issues.apache.org/ooo/show_bug.cgi?id=122795

            Bug ID: 122795
        Issue Type: DEFECT
           Summary: Single (CR) = double (CR) in HTML save
           Product: Writer
           Version: AOO 3.4.1
          Hardware: PC
                OS: Windows 8
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: save-export
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

When saving a nearly plain-text HTML document in Writer, each line break is
exported as a double line break (="<P>" HTML tag.)  Interestingly, Microsoft
Word (2002) uses the regular "<P>" tag, but makes it display correctly by
setting it up with what's probably a Microsoft-specific "<STYLE>" tag at the
head of the document.

Very haphazardly, I found a way to save a simple text document as HTML with
single line breaks in OpenOffice, and a half-inch first-line indent.  After two
years of doing this routine every day (for every file), frankly, I'm getting a
little tired of it:
1: Open the template HTML file
2: Reset the "style" to Default (instead of "List Heading") so Writer will
display single breaks, not double breaks
3: Edit the document
4: Save as HTML (HTML Compatibility: "HTML 3.2")
5: Close the document (Required)
6: Re-open the document
7: Re-set the style to Default
8: Re-set the page formatting (first line indent, etc.)
9: Re-save as HTML (HTML Compatibility: "Internet Explorer")

Then the document displays correctly, using "<DL>"/"<DT>" and "<BR>" HTML tags.
If I should just save the document as HTML 3.2, then the first-line indent
doesn't work.  I am not aware of a way to automate these steps in OpenOffice,
short of writing a macro to rewrite the HTML file before it is saved.


As a computer and microprocessor programmer myself, I can fully understand the
"bug submission" bylaws and guidelines, and if there is anything I can do to
help fix this, I would be very glad to try to help.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Reply via email to