Have Docx reader properly interpret tabs.

This commit is contained in:
Jesse Rosenthal 2014-06-19 17:55:02 -04:00
parent 86fc44d6b3
commit 0e7d2dbd43

View file

@ -134,10 +134,12 @@ codeDivs = ["SourceCode"]
runElemToInlines :: RunElem -> [Inline]
runElemToInlines (TextRun s) = strToInlines s
runElemToInlines (LnBrk) = [LineBreak]
runElemToInlines (Tab) = [Space]
runElemToString :: RunElem -> String
runElemToString (TextRun s) = s
runElemToString (LnBrk) = ['\n']
runElemToString (Tab) = ['\t']
runElemsToString :: [RunElem] -> String
runElemsToString = concatMap runElemToString