We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f92ced commit e562ca4Copy full SHA for e562ca4
compiler/src/Reporting/Doc.hs
@@ -394,18 +394,18 @@ toColor layer intensity color =
394
encodeChunks :: Style -> [String] -> E.Value
395
encodeChunks (Style bold underline color) revChunks =
396
let
397
- str = Json.fromChars (concat (reverse revChunks))
+ chars = concat (reverse revChunks)
398
in
399
case color of
400
Nothing | not bold && not underline ->
401
- E.string str
+ E.chars chars
402
403
_ ->
404
E.object
405
[ "bold" ==> E.bool bold
406
, "underline" ==> E.bool underline
407
, "color" ==> maybe E.null encodeColor color
408
- , "string" ==> E.string str
+ , "string" ==> E.chars chars
409
]
410
411
0 commit comments