Wrap long debug info strings

This commit is contained in:
Paul Brinkmeier 2022-09-08 13:50:58 +02:00
parent 48dab03326
commit b9f7aa088b

View File

@ -8,7 +8,7 @@ import Control.Monad (forM_)
import Data.List (intersperse)
import Data.Text (Text, isInfixOf)
import Network.Wai (Request)
import Text.Blaze.Html5 hiding (map)
import Text.Blaze.Html5 hiding (map, style)
import Text.Blaze.Html5.Attributes hiding (form)
import Lisa.Types (Session)
@ -53,10 +53,10 @@ viewDebug request session = do
h1 $ text "Debuginformation"
fieldset $ do
legend "Request"
pre $ string $ show request
pre ! style (textValue "white-space: pre-wrap") $ string $ show request
fieldset $ do
legend "Session"
pre $ string $ show session
pre ! style (textValue "white-space: pre-wrap") $ string $ show session
viewSqueakError :: SqueakError -> Html
viewSqueakError err = string $ show err