quicktype
quicktype copied to clipboard
python: Fix for comments starting or ending with double quotes. Fixes #1239
… #1239
Description
This fix handles both the cases where the comments might or end with a double quote "
.
Related Issue
#1239
Motivation and Context
The code earlier was replacing only the ending double quote, but the starting double quote was left unhandled. Moreover, while handling ending double quote, there was no whitespace to separating it at the end.
Previous Behaviour / Output
Same as above 👆
New Behaviour / Output
If the line starts or end with double quote, both the cases are prepended and appended with whitespace accordingly.