Skip to content

Multi-Line Literal String Serialization #83

Description

@yueyinqiu

Hello! Thanks for your effort on this awesome project!

I'm wondering whether there is an option for string style? I'm going to serialize lots of long paragraphs. To make it human editable, I would like

lines = '''
The first newline is
trimmed in raw strings.
All other whitespace
is preserved.
'''

rather than

lines = """The first newline is\ntrimmed in raw strings.\nAll other whitespace\nis preserved.\n"""

I have noticed the support of TableStyle and ArrayStyle, but failed to find a StringStyle.

Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions