https://bugs.freedesktop.org/show_bug.cgi?id=50931

Roman Eisele <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW
           Severity|normal                      |minor
            Summary|FILEOPEN: Cannot import     |FILEOPEN: Cannot import
                   |HTML <br/>                  |HTML <br/> (while <br> and
                   |                            |<br /> are imported
                   |                            |correctly)
            Version|3.5.4 release               |3.3.0 release

--- Comment #7 from Roman Eisele <[email protected]> ---
Thank you for correcting my test file! Wow, how silly by me -- I really made
the mistake to test <br />, <br>, and <br> again -- a simple typo, but no
wonder that I did not see the error with <br/>!

Thank you also for the helpful screenshot! I see the same things now.

So, while <br> and <br /> are imported correctly as ‘new line’, <br/> is just
ignored, as you write. To prevent any further misunderstandings, I add this
information to the Summary.


Reproducibility/Versions
------------------------

And this failure to import <br/> correctly is REPRODUCIBLE with
* LibreOffice 3.3.0
* LibreOffice 3.4.6
* LibreOffice 3.5.7.1
* LibreOffice 3.6.2.1
So this is an old bug, probably inherited from OOo. → Adapting Version field
(it should always contain the 1st version in which a bug is known to exist).


A possible objection, and the aswer to it
-----------------------------------------

One could object that <br/> (without any whitespace before the closing />) is
often considered as “bad style”, and that <br /> with some whitespace is the
recommended version. That is true. But nevertheless many many web sites use the
“bad” style, i.e. <br/>, and “bad style” does not mean “invalid”.

So, while LibreOffice, when *generating* (X)HTML, should use either <br> (for
HTML 4.x) or <br /> (for XHTML), it should, when *importing* (X)HTML,
definitely understand <br/>, just like <br> and <br />.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to