DocBook reader: Collapse internal spaces in literal...

and other similar tags.  This seems to accord with what
the docbook toolchain does.

Closes #7821.
This commit is contained in:
John MacFarlane 2022-01-10 11:47:55 -08:00
parent 7bf1191686
commit a25e79b5be

View file

@ -1241,7 +1241,9 @@ parseInline (Elem e) =
let classes' = case attrValue "language" e of
"" -> []
l -> [l]
return $ codeWith (attrValue "id" e,classes',[]) $ strContentRecursive e
return $ codeWith (attrValue "id" e,classes',[]) $
T.unwords $ T.words $ strContentRecursive e
-- collapse internal spaces/newlines, see #7821
simpleList = mconcat . intersperse (str "," <> space) <$> mapM getInlines
(filterChildren (named "member") e)
segmentedList = do