Docx reader: don't let first line indents trigger block quotes.
This fixes a regression introduced in pandoc 2.15 by PR #7606. Closes #7655.
This commit is contained in:
parent
45bcd7d3f1
commit
938d557844
3 changed files with 4 additions and 3 deletions
|
@ -310,9 +310,8 @@ getIndentation ns el = do
|
|||
, rightParIndent = findAttrByName ns "w" "right" indElement <|>
|
||||
findAttrByName ns "w" "end" indElement >>=
|
||||
stringToInteger
|
||||
, hangingParIndent = (findAttrByName ns "w" "hanging" indElement >>= stringToInteger) <|>
|
||||
fmap negate
|
||||
(findAttrByName ns "w" "firstLine" indElement >>= stringToInteger)
|
||||
, hangingParIndent = findAttrByName ns "w" "hanging" indElement >>=
|
||||
stringToInteger
|
||||
}
|
||||
|
||||
getElementStyleName :: Coercible T.Text a => NameSpaces -> Element -> Maybe a
|
||||
|
|
Binary file not shown.
|
@ -1,4 +1,6 @@
|
|||
[Header 1 ("indentation-blockquotes",[],[]) [Str "Indentation",Space,Str "blockquotes"]
|
||||
,Para [Str "Foobar"]
|
||||
,Para [Str "First",Space,Str "line",Space,Str "indented."]
|
||||
,Para [Str "Normal",Space,Str "list",Space,Str "paragraph"]
|
||||
,Para [Str "List",Space,Str "paragraph",Space,Str "with",Space,Str "less",Space,Str "indent"]
|
||||
,BlockQuote [Para [Str "List",Space,Str "paragraph",Space,Str "with",Space,Str "more",Space,Str "indent"]]]
|
||||
|
|
Loading…
Add table
Reference in a new issue