Created attachment 45422 [details] HTML file to import the following html document: """ <html> <head> <meta http-equiv="CONTENT-TYPE" content="text/html; charset=us-ascii"/> <title/> <meta name="GENERATOR" content="LibreOffice 3.3 (Unix)"/> </head> <body> <p lang="en-GB">Hello world!</p> </body> </html> """ produce on LibreOffice UI this output. """ name="GENERATOR" content="LibreOffice 3.3 (Unix)"/ Hello world! """ It is caused by self-closed tag title( '<title/>' ) If you replace this tag by '<title></title>', it works.
On further investigation, if the <title> tag has a space in it """ <title /> """" then no output is shown whatsoever.
Created attachment 45810 [details] [review] process unknown html tags better This should fix this bug. Extraneous text is discarded in HEAD section.
Hi Anthony, Great work on fixing this. Could you send a note to the developer list of your patch so that someone can take a look and review? Thanks!
Fixed by http://cgit.freedesktop.org/libreoffice/writer/commit/?id=a1be91f68d42f5da78947c9ceceec37fef5afb57 in master branch.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.