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

Saving query removes new lines #11

Open
tomwys opened this issue Jul 22, 2015 · 2 comments
Open

Saving query removes new lines #11

tomwys opened this issue Jul 22, 2015 · 2 comments

Comments

@tomwys
Copy link

tomwys commented Jul 22, 2015

When you save query (not chart) on Firefox/Ubuntu all new lines are removed. This is problematic because well formatted query falls apart.

@dimitri
Copy link
Owner

dimitri commented Jul 22, 2015

Agreed, I think it's due to the code editor javascript: http://codemirror.net. Actually the way I use it, I guess. Still being very much a noob in javascript, I'd accept a hand here really... can you help?

@JanChec
Copy link

JanChec commented Nov 16, 2016

It happens only on query page, not on charts page.

Seems connected with saving bug there - when you make multiple lines, on save it merges them without any spaces so it breaks the query. You need to add explicit space on the start/end of every line to save. If it's done in JS, then I suppose you're getting content by a single $('...').text() - for multiple matches it makes a merge of each text without any delimiters.

QuickFix: create every new query on the new chart page (/q/new) with [raw] selected (default). Works the same, but without mentioned bugs.

BTW why not kill the /q/raw then?

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

3 participants