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

Fix indentation of Dynamic Data Sources to be consistent #769

Closed
nilshoerrmann opened this issue Sep 4, 2011 · 9 comments
Closed

Fix indentation of Dynamic Data Sources to be consistent #769

nilshoerrmann opened this issue Sep 4, 2011 · 9 comments
Milestone

Comments

@nilshoerrmann
Copy link
Contributor

Dynamic data sources are not correctly indented. I guess this is because the external XML is appended as value and not converted to an internal XML object.

Nevertheless, the wrong indentation makes the XML hard to read in debug mode.

@michael-e
Copy link
Member

We must be careful with this. Up to now dynamic datasources will even load badly formatted (i.e. invalid) RSS feeds like Facebook feeds (and somehow "repair" certain problems).

I don't know about the inner workings though.

@nilshoerrmann
Copy link
Contributor Author

We must be careful with indentation or with handling external data at all? Not sure about your position here …

@michael-e
Copy link
Member

I don't remember exactly, unfortunately. Once upon a time I had severe problems reading RSS feeds from Facebook as XML (in custom scripts) and decided to use dynamic datasources and output Symphony pages (then read those pages in custom scripts to further parse the content).

@simoneeconomo
Copy link
Contributor

Perhaps if perfomance is the problem, we could put a checkbox in the DS editor that enables/disables indentation. Would that make sense?

@brendo
Copy link
Member

brendo commented Sep 13, 2011

Minor issue IMO, needs a test case.

@nilshoerrmann
Copy link
Contributor Author

What kind of test case do you need? – It happens for all dynamic data source that I create.

@brendo
Copy link
Member

brendo commented Sep 13, 2011

Just a sample URL & screenshot should do it :)

@nickdunn
Copy link
Contributor

nickdunn commented Oct 3, 2011

Should this go into the debug devkit tracker? Sounds like a problem with Bitter.

@brendo
Copy link
Member

brendo commented Oct 4, 2011

I think so, it's the result of this commit, which speeds up the page and prevents the devkit from crashing with some XML.

I think Bitter definitely needs some TLC, last I remember @rowan-lewis was looking at http://pygments.org/ (Github's syntax highlighter)

@brendo brendo closed this as completed in f02f560 Dec 1, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants