diff options
Diffstat (limited to 'src/pandoc.hs')
-rw-r--r-- | src/pandoc.hs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/pandoc.hs b/src/pandoc.hs index bfb619f04..a2be60d52 100644 --- a/src/pandoc.hs +++ b/src/pandoc.hs @@ -31,7 +31,8 @@ writers. module Main where import Text.Pandoc import Text.Pandoc.Writers.S5 (s5HeaderIncludes) -import Text.Pandoc.Shared ( tabFilter, ObfuscationMethod (..), readDataFile ) +import Text.Pandoc.Shared ( tabFilter, ObfuscationMethod (..), readDataFile, + headerShift ) #ifdef _HIGHLIGHTING import Text.Pandoc.Highlighting ( languages ) #endif @@ -127,12 +128,6 @@ writers = [("native" , writeNative) isNonTextOutput :: String -> Bool isNonTextOutput = (`elem` ["odt","epub"]) -headerShift :: Int -> Pandoc -> Pandoc -headerShift n = processWith shift - where shift :: Block -> Block - shift (Header level inner) = Header (level + n) inner - shift x = x - -- | Data structure for command line options. data Opt = Opt { optTabStop :: Int -- ^ Number of spaces per tab |