git.iko.soy/typeable/pandoc
on master help sign in
Don't look for template files remotely for remote input.
92ccb88John MacFarlane
src/Text/Pandoc/App/OutputSettings.hs+10−1
@@ -165,7 +165,16 @@ optToOutputSettings opts = do
165 "" -> tp <.> format
165 "" -> tp <.> format
166 _ -> tp
166 _ -> tp
167 Just . UTF8.toString <$>
167 Just . UTF8.toString <$>
168+ ((do surl <- stSourceURL <$> getCommonState
169+ -- we don't want to look for templates remotely
170+ -- unless the full URL is specified:
171+ modifyCommonState $ \st -> st{
172+ stSourceURL = Nothing }
173+ (bs, _) <- fetchItem tp'
174+ modifyCommonState $ \st -> st{
175+ stSourceURL = surl }
176+ return bs)
168− ((fst <$> fetchItem tp') `catchError`
177+ `catchError`
169 (\e ->
178 (\e ->
170 case e of
179 case e of
171 PandocResourceNotFound _ ->
180 PandocResourceNotFound _ ->