opendatapress / open_data_press

Google Sheets to Open Data Publishing Tool
MIT License
13 stars 0 forks source link

Prevent mathematical symbols in field headers #45

Closed craig552uk closed 10 years ago

craig552uk commented 10 years ago

Headers containing mathematical symbols ( at least -, possibly others) are valid in the spreadsheets API, but these can choke the jinja template engine.

These should be replaced with underscores where found.

craig552uk commented 10 years ago

It only appears to be a problem for hyphens. I had tested this in the "weird headers" worksheet, but not since adding the Jinja templates.

craig552uk commented 10 years ago

Replace hyphens in headers with underscores. Theres no risk of underscores causing a collision as they are stripped by the Spreadsheets API.