quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

python: Fix for comments starting or ending with double quotes. Fixes #1239

Open nithin-sudarsan opened this issue 4 months ago • 3 comments

… #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.

nithin-sudarsan avatar Sep 30 '24 14:09 nithin-sudarsan