Skip to content

Multiline string is messing up decoding #12

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).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions