diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2013-10-06 20:15:08 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-10-06 20:35:48 +0200 |
commit | 028b3ad8e19609ad3cb490135eb0dd5bb8eafcfe (patch) | |
tree | 1e25773f4bbc2be63e9c6e22d2c4e68ee1720fba /sw/source | |
parent | 277922e7a0a4ae8076c10936c4b12df6dcc5ddac (diff) |
fdo#58912 HTML export: headers and footers cause non-validating html
Fix it by using harmless title.
Change-Id: I238034a23f4a446c69dd3c1408ac5ccf038c73dd
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/html/htmlfly.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/html/htmlsect.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/html/htmlfly.cxx b/sw/source/filter/html/htmlfly.cxx index 2abf566ddcdd..b41acc041435 100644 --- a/sw/source/filter/html/htmlfly.cxx +++ b/sw/source/filter/html/htmlfly.cxx @@ -1582,8 +1582,8 @@ Writer& OutHTML_HeaderFooter( Writer& rWrt, const SwFrmFmt& rFrmFmt, rHTMLWrt.OutNewLine(); OStringBuffer sOut; sOut.append(OOO_STRING_SVTOOLS_HTML_division).append(' ') - .append(OOO_STRING_SVTOOLS_HTML_O_type).append('=') - .append(bHeader ? "HEADER" : "FOOTER"); + .append(OOO_STRING_SVTOOLS_HTML_O_title).append('=') + .append( bHeader ? "header" : "footer" ); HTMLOutFuncs::Out_AsciiTag( rWrt.Strm(), sOut.makeStringAndClear().getStr() ); rHTMLWrt.IncIndentLevel(); // den Inhalt von Multicol einruecken; diff --git a/sw/source/filter/html/htmlsect.cxx b/sw/source/filter/html/htmlsect.cxx index fcf206ee3f51..6a68eace7b45 100644 --- a/sw/source/filter/html/htmlsect.cxx +++ b/sw/source/filter/html/htmlsect.cxx @@ -100,12 +100,12 @@ void SwHTMLParser::NewDivision( int nToken ) case HTML_O_HREF: aHRef = rOption.GetString(); break; - case HTML_O_TYPE: + case HTML_O_TITLE: { const OUString& rType = rOption.GetString(); - if( rType.equalsIgnoreAsciiCase( "HEADER" ) ) + if( rType.equalsIgnoreAsciiCase("header") ) bHeader = sal_True; - else if( rType.equalsIgnoreAsciiCase( "FOOTER" ) ) + else if( rType.equalsIgnoreAsciiCase("footer") ) bFooter = sal_True; } } |