mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
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:
@@ -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"]]]
|
||||
|
||||
Reference in New Issue
Block a user