git.iko.soy/typeable/pandoc
on master help sign in
Add literal tabs to parser.
commit86fc44d6b3f82a2b274d4b592d1dd6152bd1eaf5 authorJesse Rosenthal <jrosenthal@jhu.edu> dateThu 19 Jun 2014, 17:53 (12 years ago) parentceb4bb3
1 file changed+4−1
src/Text/Pandoc/Readers/Docx/Parse.hs+4−1
src/Text/Pandoc/Readers/Docx/Parse.hs+4−1
@@ -466,7 +466,7 @@ data Run = Run RunStyle [RunElem]
466466 | Endnote String
467467 deriving Show
468468
469−data RunElem = TextRun String | LnBrk
469+data RunElem = TextRun String | LnBrk | Tab
470470 deriving Show
471471
472472data RunStyle = RunStyle { isBold :: Bool
@@ -545,6 +545,9 @@ elemToRunElem ns element
545545 | qName (elName element) == "br" &&
546546 qURI (elName element) == (lookup "w" ns) =
547547 Just $ LnBrk
548+ | qName (elName element) == "tab" &&
549+ qURI (elName element) == (lookup "w" ns) =
550+ Just $ Tab
548551 | otherwise = Nothing
549552
550553