summaryrefslogtreecommitdiff
path: root/pandoc.hs
diff options
context:
space:
mode:
Diffstat (limited to 'pandoc.hs')
-rw-r--r--pandoc.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 45e5de5f2..9023b2625 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -689,10 +689,8 @@ options =
, Option "" ["epub-stylesheet"]
(ReqArg
(\arg opt -> do
- warn "--epub-stylesheet is deprecated. Use --css or stylesheet in metadata."
- let newvars = optVariables opt ++ [("css",arg)]
- return opt { optVariables = newvars,
- optStandalone = True })
+ text <- UTF8.readFile arg
+ return opt { optEpubStylesheet = Just text })
"FILENAME")
"" -- "Path of epub.css"