Commit 301df38e authored by Alexey Khudyakov's avatar Alexey Khudyakov

Fix build for other packages

parent 16532afe
...@@ -171,7 +171,7 @@ data WidgetDisplay = WidgetDisplay MessageHeader [DisplayData] ...@@ -171,7 +171,7 @@ data WidgetDisplay = WidgetDisplay MessageHeader [DisplayData]
instance ToJSON WidgetDisplay where instance ToJSON WidgetDisplay where
toJSON (WidgetDisplay replyHeader ddata) = toJSON (WidgetDisplay replyHeader ddata) =
let pbval = toJSON $ PublishDisplayData replyHeader ddata let pbval = toJSON $ PublishDisplayData replyHeader ddata Nothing
in toJSON $ IPythonMessage replyHeader pbval DisplayDataMessage in toJSON $ IPythonMessage replyHeader pbval DisplayDataMessage
-- Override toJSON for ClearOutput -- Override toJSON for ClearOutput
......
...@@ -67,7 +67,7 @@ publishResult send replyHeader displayed updateNeeded poutput upager result = do ...@@ -67,7 +67,7 @@ publishResult send replyHeader displayed updateNeeded poutput upager result = do
sendOutput (ManyDisplay manyOuts) = mapM_ sendOutput manyOuts sendOutput (ManyDisplay manyOuts) = mapM_ sendOutput manyOuts
sendOutput (Display outs) = do sendOutput (Display outs) = do
hdr <- dupHeader replyHeader DisplayDataMessage hdr <- dupHeader replyHeader DisplayDataMessage
send $ PublishDisplayData hdr $ map (convertSvgToHtml . prependCss) outs send $ PublishDisplayData hdr (map (convertSvgToHtml . prependCss) outs) Nothing
convertSvgToHtml (DisplayData MimeSvg s) = html $ makeSvgImg $ base64 $ E.encodeUtf8 s convertSvgToHtml (DisplayData MimeSvg s) = html $ makeSvgImg $ base64 $ E.encodeUtf8 s
convertSvgToHtml x = x convertSvgToHtml x = x
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment