aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-11-02 14:02:24 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-11-02 14:04:38 -0700
commit938d55784486f42d80cc4c2fcfe6ae905be382cd (patch)
treec455d22daff3f38ae48264c1cb808637d8f24333 /src
parent45bcd7d3f1c78d08d20db3b6929421c896fa869a (diff)
downloadpandoc-938d55784486f42d80cc4c2fcfe6ae905be382cd.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Docx/Parse/Styles.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Docx/Parse/Styles.hs b/src/Text/Pandoc/Readers/Docx/Parse/Styles.hs
index bb28b3009..df942579a 100644
--- a/src/Text/Pandoc/Readers/Docx/Parse/Styles.hs
+++ b/src/Text/Pandoc/Readers/Docx/Parse/Styles.hs
@@ -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