~alcinnz/rhapsode

2c6a5f585af4c48576bd804c5d3f6fa75ad35419 — Adrian Cochrane 5 years ago 53b9d82
Turn off CSS inheritance for cleaner output.
2 files changed, 2 insertions(+), 1 deletions(-)

M rhapsode.cabal
M src/Main.hs
M rhapsode.cabal => rhapsode.cabal +1 -1
@@ 64,7 64,7 @@ executable rhapsode
        http-client, http-client-tls, bytestring,
        html-conduit, xml-conduit, text, containers,
        network-uri,
        stylish-haskell >= 0.2.2, css-syntax, stylish-html-conduit
        stylish-haskell >= 0.4.0, css-syntax, stylish-html-conduit
  
  -- Directories containing source files.
  hs-source-dirs:      src

M src/Main.hs => src/Main.hs +1 -0
@@ 69,6 69,7 @@ stylizeEl styles html
data MapPropertyParser = MPP (M.Map XML.Name Text)
instance Style.PropertyParser MapPropertyParser where
    temp = MPP M.empty
    inherit _ = Style.temp
    longhand _ (MPP self) name value = Just $ MPP $ M.insert xmlName xmlValue self
        where
            xmlName = XML.Name name Nothing Nothing