Skip to content

Stripping whitespace #2

Description

@fatso83

I did a test run on an existing codebase and it failed with some cryptic error messages about expecting a string, but getting NoneType. After some debugging I found out that the file names contained a space at the end (as in <!-- @import "sub1/sub2/myfile.kit " -->.

This works in CodeKit, and I also fixed it by simply doing .strip() on the file name strings, but I am unsure if this should be implemented. Is it in the specs, and if not, should we implement the spec or the actual reference implementation (CodeKit)?

Another matter is the case of better error messages. As it is, it is hard for the end user to get to the cause of the error, since there is very little contextual information (such as what filename causes the error).

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