Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Display eps as image, not code.

  • Loading branch information...
commit 9082dc1c88a9a7f5ef5ddd0fcd933f6b368176a4 1 parent 4815500
@jgm authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 Network/Gitit/Framework.hs
View
5 Network/Gitit/Framework.hs
@@ -269,8 +269,9 @@ isDiscussPageFile _ = False
isSourceCode :: String -> Bool
isSourceCode path' =
let langs = languagesByFilename $ takeFileName path'
- in not (null langs || takeExtension path' == ".svg")
- -- allow svg to be served as image
+ ext = takeExtension path'
+ in not (null langs || ext == ".svg" || ext == ".eps")
+ -- allow svg or eps to be served as image
-- | Returns encoded URL path for the page with the given name, relative to
-- the wiki base.
Please sign in to comment.
Something went wrong with that request. Please try again.