If highlight backend not set for pretty JSON, assume Skylighting
Highlighter2 doesn't work for JSON anyway (not sure why yet).
This commit is contained in:
parent
31d7e9eac7
commit
deedc961c5
1 changed files with 2 additions and 2 deletions
|
@ -190,7 +190,7 @@ provideHtmlAndAP' host object widget = selectRep $ do
|
||||||
Just "true" -> do
|
Just "true" -> do
|
||||||
mhl <- lookupGetParam "highlight"
|
mhl <- lookupGetParam "highlight"
|
||||||
let sky = case mhl of
|
let sky = case mhl of
|
||||||
Nothing -> error "Highlight style not set"
|
Nothing -> True
|
||||||
Just "hl2" -> False
|
Just "hl2" -> False
|
||||||
Just "sky" -> True
|
Just "sky" -> True
|
||||||
Just _ -> error "Invalid highlight style"
|
Just _ -> error "Invalid highlight style"
|
||||||
|
@ -223,7 +223,7 @@ provideHtmlAndAP'' body widget = selectRep $ do
|
||||||
Just "true" -> do
|
Just "true" -> do
|
||||||
mhl <- lookupGetParam "highlight"
|
mhl <- lookupGetParam "highlight"
|
||||||
let sky = case mhl of
|
let sky = case mhl of
|
||||||
Nothing -> error "Highlight style not set"
|
Nothing -> True
|
||||||
Just "hl2" -> False
|
Just "hl2" -> False
|
||||||
Just "sky" -> True
|
Just "sky" -> True
|
||||||
Just _ -> error "Invalid highlight style"
|
Just _ -> error "Invalid highlight style"
|
||||||
|
|
Loading…
Reference in a new issue