diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
commit | ed5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch) | |
tree | 7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /external/libepubgen/tdf-120491.patch | |
parent | Initial commit. (diff) | |
download | libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.tar.xz libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.zip |
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | external/libepubgen/tdf-120491.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/external/libepubgen/tdf-120491.patch b/external/libepubgen/tdf-120491.patch new file mode 100644 index 000000000..2a02a66e4 --- /dev/null +++ b/external/libepubgen/tdf-120491.patch @@ -0,0 +1,33 @@ +From 92760e4b0b8da126029c5ff858ebec27df4acfa8 Mon Sep 17 00:00:00 2001 +Subject: [PATCH] tdf#120491 EPUBHTMLGenerator: remove not needed <meta + content="text/html..."> + +IngramSpark flags this as an error, and not writing it still passes +epubcheck. +--- + src/lib/EPUBHTMLGenerator.cpp | 7 +------ + 1 file changed, 1 insertion(+), 6 deletions(-) + +diff --git a/src/lib/EPUBHTMLGenerator.cpp b/src/lib/EPUBHTMLGenerator.cpp +index a950ea5..f6c2527 100644 +--- src/lib/EPUBHTMLGenerator.cpp ++++ src/lib/EPUBHTMLGenerator.cpp +@@ -579,14 +579,9 @@ void EPUBHTMLGenerator::endDocument() + m_impl->m_document.openElement("title", RVNGPropertyList()); + m_impl->m_document.closeElement("title"); + } +- RVNGPropertyList metaAttrs; +- metaAttrs.insert("http-equiv", "content-type"); +- metaAttrs.insert("content", "text/html; charset=UTF-8"); +- m_impl->m_document.openElement("meta", metaAttrs); +- m_impl->m_document.closeElement("meta"); + if (m_impl->m_version >= 30 && m_impl->m_layoutMethod == EPUB_LAYOUT_METHOD_FIXED) + { +- metaAttrs.clear(); ++ RVNGPropertyList metaAttrs; + metaAttrs.insert("name", "viewport"); + std::stringstream content; + if (const librevenge::RVNGProperty *pageWidth = m_impl->m_actualPageProperties["fo:page-width"]) +-- +2.16.4 + |