Make prettify/unprettify logic more robust#1646
Conversation
Missing tests / edge cases
No direct security concerns found in this PR diff. |
2c8ef5c to
fa2a939
Compare
* explicitly handle more exceptional cases such as empty input
* clarify in error message that only a single statement is expected
* don't return an empty string on failure; instead return the
original text
fa2a939 to
cbfb566
Compare
|
Merging this without review, since it is pretty much required for #1645, which I merged without noticing the state of this one. |
Description
Works together with #1645.
Checklist
changelog.mdfile.AUTHORSfile (or it's already there).