sw/source/filter/md/mdcallbcks.cxx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-)
New commits: commit f6411560817dd9e2c07564eef100dcb8f995804f Author: Ujjawal Kumar <randomfores...@gmail.com> AuthorDate: Sat Aug 23 12:29:09 2025 +0530 Commit: Thorsten Behrens <thorsten.behr...@collabora.com> CommitDate: Wed Aug 27 09:04:50 2025 +0200 tdf#162153 Add missing inline code span Change-Id: I7472af0404889bc6a0f917ce5e216f203267250e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190084 Reviewed-by: Thorsten Behrens <thorsten.behr...@collabora.com> Tested-by: Jenkins diff --git a/sw/source/filter/md/mdcallbcks.cxx b/sw/source/filter/md/mdcallbcks.cxx index fe4a9d5e04a5..f37a12ae5175 100644 --- a/sw/source/filter/md/mdcallbcks.cxx +++ b/sw/source/filter/md/mdcallbcks.cxx @@ -17,15 +17,19 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#include <editeng/postitem.hxx> #include <IDocumentContentOperations.hxx> +#include <IDocumentStylePoolAccess.hxx> +#include <charatr.hxx> +#include <editeng/postitem.hxx> #include <editeng/crossedoutitem.hxx> #include <editeng/udlnitem.hxx> #include <editeng/wghtitem.hxx> +#include <editeng/fontitem.hxx> +#include <fmtanchr.hxx> #include <fmtinfmt.hxx> #include <i18nlangtag/languagetag.hxx> -#include <fmtanchr.hxx> +#include <poolfmt.hxx> #include <tools/urlobj.hxx> #include "swmd.hxx" @@ -178,7 +182,13 @@ int SwMarkdownParser::enter_span_callback(MD_SPANTYPE type, void* detail, void* break; } case MD_SPAN_CODE: + { + SwDoc* pDoc = parser->m_xDoc.get(); + SwTextFormatColl* pColl + = pDoc->getIDocumentStylePoolAccess().GetTextCollFromPool(RES_POOLCOLL_HTML_PRE); + pItem.reset(new SvxFontItem(pColl->GetFont())); break; + } case MD_SPAN_DEL: pItem.reset(new SvxCrossedOutItem(STRIKEOUT_SINGLE, RES_CHRATR_CROSSEDOUT)); break;