mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-19 02:22:09 +08:00
RST reader: fix spurious newlines in some attributes from directives.
This commit is contained in:
@@ -223,7 +223,8 @@ rawFieldListItem minIndent = try $ do
|
||||
first <- anyLine
|
||||
rest <- option "" $ try $ do lookAhead (count indent (char ' ') >> spaceChar)
|
||||
indentedBlock
|
||||
let raw = (if T.null first then "" else first <> "\n") <> rest <> "\n"
|
||||
let raw = (if T.null first then "" else first <> "\n") <> rest <>
|
||||
(if T.null first && T.null rest then "" else "\n")
|
||||
return (name, raw)
|
||||
|
||||
fieldListItem :: PandocMonad m => Int -> RSTParser m (Inlines, [Blocks])
|
||||
|
||||
Reference in New Issue
Block a user