posit-dev / py-htmltools

Tools for HTML generation and output
MIT License
19 stars 4 forks source link

Fix broken deserialization of deps #65

Closed jcheng5 closed 12 months ago

jcheng5 commented 12 months ago

The previous implementation of deserialization of deps was broken if the JSON contained newlines. This commit both makes the deserialization robust to newlines, and also removes the newlines.

Testing notes

Without this fix, this qmd's Data tab comes up blank.

I added unit tests that verify the fixed deserialization both with and without newlines/indents.