Skip to content

Code generator doesn't preserve individual string quote style #7799

Closed
@dhruvmanila

Description

This is related to the Generator struct.

This is especially true for triple-quoted strings. The Generator will normalize them to single quotes and perform some transformations which may or may not be correct:

  • Escape the inner quotes if they match the outer ones
  • Preserve the whitespaces (for example, using \n)

Related issues:

Metadata

Assignees

Labels

bugSomething isn't workingfixesRelated to suggested fixes for violations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions