@@ -39,6 +39,7 @@ module Text.Pandoc.Readers.Docx.Reducible ((<++>),
40 reduceList,
40 reduceList,
41 reduceListB,
41 reduceListB,
@@ -78,6 +79,15 @@ reduceList' as (x:xs) = reduceList' (init as ++ (last as <++> x) ) xs
78reduceList :: (Reducible a) => [a] -> [a]
79reduceList :: (Reducible a) => [a] -> [a]
79reduceList = reduceList' []
80reduceList = reduceList' []
82+concatR :: (Reducible a) => [a] -> [a] -> [a]
86+concatR rs ss = let (x:xs) = reverse rs
89+ reverse xs ++ ( x <++> y ) ++ ys
81combineReducibles :: (Reducible a, Eq a) => a -> a -> [a]
91combineReducibles :: (Reducible a, Eq a) => a -> a -> [a]
82combineReducibles r s =
92combineReducibles r s =
83 let (conts, rs) = topLevelContainers r
93 let (conts, rs) = topLevelContainers r