Skip to content

Commit

Permalink
fix the haskell code
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbr committed Aug 28, 2023
1 parent 3c6d248 commit 1d543a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pandoc/pandoc-filter-copperflame-latex/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ processBlock (DefinitionList xs) = DefinitionList $ map (\(a, b) -> (map process
processBlock (Header i a xs) = Header i a $ map processInline xs
processBlock HorizontalRule = HorizontalRule
processBlock (Table a caption col thead tbody tfoot) = Table a (processCaption caption) col (processTableHead thead) (map processTableBody tbody) (processTableFoot tfoot)
--filterBibTeX (Figure a c xs) = Figure a (processCaption c) (map filterBibTeX xs)
processBlock (Figure a c xs) = Figure a (processCaption c) (map processBlock xs)
processBlock (Div (id, classes, attrs) blocks) | (pack "minipage") `elem` classes =
Div (id, (pack "merge") : classes, attrs)
$ ((RawBlock (Format $ pack "glue{tex}") $ pack $ "\\begin{minipage}{" ++ (unpack width) ++ "\\textwidth}"))
Expand All @@ -86,7 +86,6 @@ processBlock (Div (id, classes, attrs) blocks) | (pack "minipage") `elem` classe
Nothing -> (pack "0.5")

processBlock (Div attr blocks) | otherwise = Div attr $ processBlockList blocks
processBlock Null = Null


processBlockList :: [Block] -> [Block]
Expand Down

0 comments on commit 1d543a9

Please sign in to comment.