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@lists.freedesktop.org
Reporter: rolfofsax...@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.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs