Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Car type abbreviations with line feeds breaks cargo report #86

Open
bowdidge opened this issue Nov 1, 2017 · 0 comments
Open

Car type abbreviations with line feeds breaks cargo report #86

bowdidge opened this issue Nov 1, 2017 · 0 comments

Comments

@bowdidge
Copy link
Owner

bowdidge commented Nov 1, 2017

If a car type has an abbreviated name with a line feed, the cargo report fails to draw because of unexpected newlines in strings. See the Nicholas and Ashley Creek.swl example on switchlist mailing list for an example. The switchlist file looks like:

<object type="CARTYPE" id="z118">
    <attribute name="cartypename" type="string">T

Retyping the abbreviations fixes the problem.

The different generators that put strings into HTML should check for invalid characters like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant