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:
parent
7bf1191686
commit
a25e79b5be
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue