Skip to content

Support SPLIT=\\n in template strings #1245

@matthewhorridge

Description

@matthewhorridge

SPLIT in template strings doesn't current support splitting on new lines. I have a use case where I have multiple lines per cell in a CSV (as a list of synonyms for each term) and so I'd like to split on newlines. Ideally I would like to allow SPLIT to support regexes but there isn't a clear, non-risky way of doing this without possibly breaking backwards compatibility.

After some discussion with @jamesaoverton on the OBO Slack channel we came to the conclusion that we would just explicitly support new line characters in SPLIT.

Note: In the template string the slash character must be escaped so that it is preserved. Thus SPLIT=\\n works but SPLIT=\n will not.

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