git.iko.soy/typeable/pandoc
on master help sign in
Have Docx reader properly interpret tabs.
commit0e7d2dbd4304902cb6c6d4e9618592b5148dc598 authorJesse Rosenthal <jrosenthal@jhu.edu> dateThu 19 Jun 2014, 17:55 (12 years ago) parent86fc44d
1 file changed+2
src/Text/Pandoc/Readers/Docx.hs+2
src/Text/Pandoc/Readers/Docx.hs+2
@@ -134,10 +134,12 @@ codeDivs = ["SourceCode"]
134134runElemToInlines :: RunElem -> [Inline]
135135runElemToInlines (TextRun s) = strToInlines s
136136runElemToInlines (LnBrk) = [LineBreak]
137+runElemToInlines (Tab) = [Space]
137138
138139runElemToString :: RunElem -> String
139140runElemToString (TextRun s) = s
140141runElemToString (LnBrk) = ['\n']
142+runElemToString (Tab) = ['\t']
141143
142144runElemsToString :: [RunElem] -> String
143145runElemsToString = concatMap runElemToString