Skip to content

Commit

Permalink
Special handling for byte vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Nov 13, 2022
1 parent bb8781f commit c0ff67a
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,19 @@ object DemoMain {
),
),
p("toString: "),
pre(code(pprint(decoded).plainText)),
pre(
code(
pprint
.PPrinter
.apply(
additionalHandlers = { case b: ByteVector =>
pprint.Tree.Literal(s"\"${b.toHex}\"")
}
)
.apply(decoded)
.plainText
)
),
).render
)
}
Expand Down

0 comments on commit c0ff67a

Please sign in to comment.