From 73aad7c16546d8e51049f63fdfc1efbb61af8917 Mon Sep 17 00:00:00 2001 From: as-op Date: Wed, 5 Jun 2024 16:48:49 +0200 Subject: [PATCH] remove already checked formatter.applicable? https://github.com/opf/openproject/pull/15702#discussion_r1627479843 --- app/models/work_package/pdf_export/markdown_field.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/work_package/pdf_export/markdown_field.rb b/app/models/work_package/pdf_export/markdown_field.rb index ddb7648c8b0f..b478d14278ab 100644 --- a/app/models/work_package/pdf_export/markdown_field.rb +++ b/app/models/work_package/pdf_export/markdown_field.rb @@ -72,8 +72,6 @@ def apply_macro_text(text, work_package, formatter) end def apply_macro_html(html, work_package, formatter) - return html unless formatter.applicable?(html) - doc = Nokogiri::HTML.fragment(html) apply_macro_html_node(doc, work_package, formatter) doc.to_html