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 2014/02/24 18:21:14 UTC

[Bug 117568] HTML: Headings numbering not applied via "Insert File"

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

stephane.gourichon_org_apache_issues_bugzilla@m4x.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stephane.gourichon_org_apac
                   |                            |he_issues_bugzilla@m4x.org

--- Comment #4 from stephane.gourichon_org_apache_issues_bugzilla@m4x.org ---
Created attachment 82682
  --> https://issues.apache.org/ooo/attachment.cgi?id=82682&action=edit
Show that normal paragraph isolating title prevents bug.

# Precision on steps to reproduce

Comment 2 by michael: looks like a workaround (used the word "corrected") but
it actually a refinement of the "steps to reproduce".

Indeed no numbering at all are visible until opening again "Tools.Outline
Numbering..." and clicking on "Ok"...

# Preventive workaround

If, in source document, a normal HTML paragraph (P) exists between UL and H1,
the bug does not appear.

# Curative workaround

A workaround to the bug is to walk through the whole document, locate the
titles that miss a number and press F12 on each of them.

The cost of this workaround is proportional to the size of the documents.

# Severity

This is a nasty bug when using a document workflow that implies a HTML step to
import into OpenOffice because documents are unsuitable for sending to
recipients until manually fixed, and the fix has to be repeated each the time a
modified document is reimported to OpenOffice.



# Also observed by *opening* an HTML file

The steps to reproduce mention "Insert file...".

Also works with "Open File..." like this :

* "Open file..." and select the HTML sample attached.
* "Tools" -> "Outline Numbering...". Level 1 is selected.
* Under "Paragraph Style" choose "Heading 1".
* Right to "Number" choose "1,2,3..." (anything other than "None" should do,
tested with "A, B, C")
* Press "Ok".
* Expected: Both titles numbered.
* Observed: First title is numbered, second title is not.

# Also observed by *pasting* HTML in a new document

* "File" -> "New" -> "Text document"
* Open the HTML sample attached using e.g. firefox.
* "Tools" -> "Outline Numbering...". Level 1 is selected.
* Under "Paragraph Style" choose "Heading 1".
* Right to "Number" choose "1,2,3..." (anything other than "None" should do,
tested with "A, B, C")
* Press "Ok".
* Expected: Both titles numbered.
* Observed: First title is numbered, second title is not.

# Insight

* When bug appears, pressing F12 on a normally behaving (i.e. not bugger) title
toggles numbering for *all* titles of the same level.
* Pressing F12 on the buggy title makes it part of the numbering sequence. 
After that, it behaves normally (pressing F12 again on it toggles numbering for
*all* titles of the same level).

This suggests that on HTML import, the "unnumbered" nature of the HTML UL list
gets wrongly propagated to the following title, unless a normal paragraph
isolates the title from it.

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