diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2023-07-24 13:26:42 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2023-07-24 15:27:14 +0200 |
commit | aa1694c85cd4388d11c000d852ec509a6c5e8a08 (patch) | |
tree | ffe0a03eca6ae4e6905ebf76aa4632aa5f489453 /kde-apps/okular/files | |
parent | kde-apps/libksane: drop 22.12.3 (diff) | |
download | gentoo-aa1694c85cd4388d11c000d852ec509a6c5e8a08.tar.gz gentoo-aa1694c85cd4388d11c000d852ec509a6c5e8a08.tar.bz2 gentoo-aa1694c85cd4388d11c000d852ec509a6c5e8a08.zip |
kde-apps/okular: drop 22.12.3
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/okular/files')
-rw-r--r-- | kde-apps/okular/files/okular-22.12.2-discount-3.patch | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/kde-apps/okular/files/okular-22.12.2-discount-3.patch b/kde-apps/okular/files/okular-22.12.2-discount-3.patch deleted file mode 100644 index e9fef2679adb..000000000000 --- a/kde-apps/okular/files/okular-22.12.2-discount-3.patch +++ /dev/null @@ -1,47 +0,0 @@ -From f1f638c2c51a6ef699dee22f6e90aff67beff8ec Mon Sep 17 00:00:00 2001 -From: Albert Astals Cid <aacid@kde.org> -Date: Wed, 1 Feb 2023 22:01:52 +0100 -Subject: [PATCH] Compile with discount 3 - ---- - generators/markdown/converter.cpp | 17 +++++++++++++++++ - 1 file changed, 17 insertions(+) - -diff --git a/generators/markdown/converter.cpp b/generators/markdown/converter.cpp -index 20d3c725f..3c8546b32 100644 ---- a/generators/markdown/converter.cpp -+++ b/generators/markdown/converter.cpp -@@ -93,6 +93,8 @@ QTextDocument *Converter::convertOpenFile() - { - rewind(m_markdownFile); - -+#if defined(MKD_NOLINKS) -+ // on discount 2 MKD_NOLINKS is a define - MMIOT *markdownHandle = mkd_in(m_markdownFile, 0); - - int flags = MKD_FENCEDCODE | MKD_GITHUBTAGS | MKD_AUTOLINK | MKD_TOC | MKD_IDANCHOR; -@@ -103,6 +105,21 @@ QTextDocument *Converter::convertOpenFile() - Q_EMIT error(i18n("Failed to compile the Markdown document."), -1); - return nullptr; - } -+#else -+ // on discount 3 MKD_NOLINKS is an enum value -+ MMIOT *markdownHandle = mkd_in(m_markdownFile, nullptr); -+ -+ mkd_flag_t *flags = mkd_flags(); -+ mkd_set_flag_bitmap(flags, MKD_FENCEDCODE | MKD_GITHUBTAGS | MKD_AUTOLINK | MKD_TOC | MKD_IDANCHOR); -+ if (!m_isFancyPantsEnabled) { -+ mkd_set_flag_num(flags, MKD_NOPANTS); -+ } -+ if (!mkd_compile(markdownHandle, flags)) { -+ Q_EMIT error(i18n("Failed to compile the Markdown document."), -1); -+ return nullptr; -+ } -+ mkd_free_flags(flags); -+#endif - - char *htmlDocument; - const int size = mkd_document(markdownHandle, &htmlDocument); --- -GitLab - |