diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-05-09 00:07:27 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-05-09 00:07:27 -0700 |
commit | 7920a1a46987c8d57e12ffc134a9da9a9a4e9ecb (patch) | |
tree | 27e01aa9e25840227e961519a2763e5b2cd5699c /pandoc.hs | |
parent | 1c2951dfd9ee72e5270cb974a06098adb9178f89 (diff) | |
download | pandoc-7920a1a46987c8d57e12ffc134a9da9a9a4e9ecb.tar.gz |
Revert "EPUB writer: stylesheet changes. Closes #2040."
This reverts commit 1c2951dfd9ee72e5270cb974a06098adb9178f89.
See #2040.
The semantics was too squishy. `--css` takes a URL, but
for EPUB we need files that we can read. I prefer keeping
the old system for now, with `--epub-stylesheet`.
Diffstat (limited to 'pandoc.hs')
-rw-r--r-- | pandoc.hs | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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" |