Skip to content

Multiline string is messing up decoding #12

@awvwgk

Description

@awvwgk

Another take on strings in HSD, this time to see what happens if I feed in a multiline string:

Valid? = Multiline
String
Invalid? = "Multiline
String"
Invalid! = """Multiline
String"""

Apparently an even number of quotation mark allows me to feed multiple lines to the HSD decoder, which are assumed to be arrays:

{'valid?': 'Multiline', 'invalid?': ['"Multiline', 'String"'], 'invalid!': ['"""Multiline', 'String"""']}

Note that the first key-value pair drops the second line without further notice, but should probably raise a syntax error (all of them actually should).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions