Docx Reader: Single underlines are "emph"

All other underlines are ignored.
This commit is contained in:
Jesse Rosenthal 2014-07-31 18:44:41 -04:00
parent 0565a81676
commit 57939a9282

View file

@ -219,7 +219,8 @@ runStyleToContainers rPr =
, if isStrike rPr then (Just Strikeout) else Nothing
, if isSuperScript rPr then (Just Superscript) else Nothing
, if isSubScript rPr then (Just Subscript) else Nothing
, rUnderline rPr >>= (\f -> Just $ Span ("", [], [("underline", f)]))
, rUnderline rPr >>=
(\f -> if f == "single" then (Just Emph) else Nothing)
]
in
classContainers ++ formatters