Skip to content

gef parsing failes due to tab delimiter #367

@tlukkezen

Description

@tlukkezen

The Gef parser doesn't parse the cpt data table when the columns are separated by tabs. This can be confusing since multiple spaces (which are visually indistinguishable from tabs) are accepted as a separator by default. The GEF-format is a human-readable format and therefore we should accept tabs as a columnseparator by default.

Another reason for change is that it is not possible to enter the "tab" or "\t" as a value of #COLUMNSEPARATOR, so TAB-separated data cannot be parsed at all ATM.

How to reproduce

In the zip file enclosed are two files:

  • "cpt-tabs.GEF": Gives an error when parsed with pygef.read_cpt();
  • "cpt-spaces.GEF": Same file as the other, except the tabs are replaced with multiple spaces. This file CAN be parsed with pygef.read_cpt().

cpt-gef.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions