From cb6f5a3b370babe6083937362e0e8ddfa51d124c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 15 Jan 2026 10:55:58 +0100 Subject: DocBook/JATS reader: don't export surrounding space from inline elements. Previously we would export leading and trailing space inside elements like emphasis or ulink so they appeared outside the resulting pandoc Inline (Emph or Link). This is not really motivated; DocBook and XML in general treats leading and trailing whitespace in this context as significant. These spaces may casue problems for some output formats, e.g. asciidoc, but these issues should be addressed in the corresponding writers, as they are in the Markdown writer, using Text.Pandoc.Writers.Shared.delimited. Closes #11398. --- test/command/6719.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/command/6719.md b/test/command/6719.md index 23701c066..5be3bce93 100644 --- a/test/command/6719.md +++ b/test/command/6719.md @@ -4,7 +4,7 @@ emphasized text ^D -[ Para [ Emph [ Str "emphasized" ] , Space , Str "text" ] ] +[ Para [ Emph [ Str "emphasized" , Space ] , Str "text" ] ] ``` ``` @@ -13,6 +13,6 @@ hi there

^D -[ Para [ Emph [ Str "hi" ] , Space , Str "there" ] ] +[ Para [ Emph [ Space , Str "hi" , Space ] , Str "there" ] ] ``` -- cgit v1.2.3