[Libreoffice-bugs] [Bug 107949] New: Export to xhtml document always has title of " - no title specified"
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri May 19 07:41:28 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=107949
Bug ID: 107949
Summary: Export to xhtml document always has title of "- no
title specified"
Product: LibreOffice
Version: 5.1.6.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: rolfofsaxony at gmail.com
Description:
In the header.xsl file there is the following:
<!-- title of document for browser frame title -->
<xsl:element name="title">
<xsl:attribute name="xml:lang">
<xsl:value-of select="$lang" />
</xsl:attribute>
<xsl:choose>
<xsl:when
test="$globalData/meta-file/*/office:meta/dc:title">
<xsl:value-of
select="$globalData/meta-file/*/office:meta/dc:title" />
</xsl:when>
<!-- providing the mandatory title is a
workaround for an IE bug-->
<xsl:otherwise>
<xsl:text>- no title
specified</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
On Linux Mint 17 Libreoffice running with Language English UK any document
exported as xhtml whether it has a Title in the document or not always ends up
with the .html document having
<title xml:lang="en-US">- no title specified</title>
Whilst this can be edited, it's an annoyance.
Even if the actual title cannot be extracted from the document for some reason
the default should at the very least be the filename of the document i.e.
"mydocument.html" not "- no title specified"
Steps to Reproduce:
1.Export a .odf document as xhtml
2.
3.
Actual Results:
<title xml:lang="en-US">- no title specified</title>
Expected Results:
<title xml:lang="en-US">Bandwidth on Linux</title>
Using the actual title in the document
or
<title xml:lang="en-US">bandwidth.html</title>
Using the name of the file
Reproducible: Always
User Profile Reset: No
Additional Info:
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/58.0.3029.81 Safari/537.36 OPR/45.0.2552.812
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170519/aab7fe8b/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list