You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/07/21 21:27:44 UTC

[Bug 122795] New: Single (CR) = double (CR) in HTML save

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: issues@openoffice.apache.org
          Reporter: abexawarem@spamavert.com
                CC: issues@openoffice.apache.org

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.

[Issue 122795] Single (CR) = double (CR) in HTML save

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122795

Edwin Sharp <el...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |elish@apache.org
         Resolution|---                         |IRREPRODUCIBLE

--- Comment #2 from Edwin Sharp <el...@apache.org> ---
No double line break when save as html
AOO420m1(Build:9800)  -  Rev. 1586681
Rev.1586681
Win 7

-- 
You are receiving this mail because:
You are on the CC list for the issue.
You are the assignee for the issue.
You are watching all issue changes.

[Bug 122795] Single (CR) = double (CR) in HTML save

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=122795

Samir <sm...@my.fit.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smammadov2011@my.fit.edu

--- Comment #1 from Samir <sm...@my.fit.edu> ---
I have successfully replicated the bug on AOO401m5(Build:9714)  -  Rev.
1523756, on my Windows 7 64 bit machine. It’s a Dell XPS L502X.

This bug is similar to bugs 24958, 64383, 56554 which have all been confirmed
and relate to improper HTML formatting.

I was able to follow the steps of the original poster to replicate the bug, but
not the solution. I’m also assuming he was using a different version of Writer
since some of the details in the steps were different. Here is what I did:

1. Open Writer.
2. Create a new HTML document using the template.
3. Change the style of the document to “Default” by going to Format->Styles and
Formatting->Default.
4. Write some random text and add some random tabs and line breaks.
5. Save as an HTML document (which should be selected by default).
6. Open document in a web browser.

I noticed that closing the document re-editing and saving it and following the
other steps did nothing to fix the problem or change anything about it.

I tried testing some of the other formatting issues HTML documents had and
tried some other configurations. Using other styles does not seem to help and
still presents the same issues. Changing the spacing of the paragraphs also
does nothing as does changing fonts and their properties.

The only way I found a “solution” to this problem is by using “Shift+Enter”
instead of just “Enter” to create new lines. This way Writer avoids the spacing
and creating a new paragraph element issue and formats the HTML correctly with
only <br>.

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