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

2.0.0 doesn't pretty-print XML #40

Closed
aspender opened this issue Apr 17, 2012 · 8 comments
Closed

2.0.0 doesn't pretty-print XML #40

aspender opened this issue Apr 17, 2012 · 8 comments

Comments

@aspender
Copy link

The older version used to have a pretty printed XML output with line breaks and indentation. This is missing in 2.0.0. It would be nice if the Response Body (Highlight) view did this.

chao added a commit that referenced this issue Apr 19, 2012
@toinux
Copy link
Contributor

toinux commented Apr 19, 2012

indent working, but the xml is not scrollable
I think that adding overflow: auto on the div would solve this
thank you !

@chao
Copy link
Owner

chao commented Apr 19, 2012

@toinux Okay, I will add overflow property, but for now you can also resize the result DIV from right bottom corner.

@Vest
Copy link

Vest commented Apr 23, 2012

It seems that the formatting feature is not fixed in v2.0.1. When I receive a response as a single line:

app:workspaceatom:titleData/atom:titleatom:titleMyObjectCollection/atom:title/app:collection/app:workspace/app:service

I still see it as a single line with colored lines in the response body highlight. However, the response body preview looks fine now.

p.s. XML tags are swallowed in this reply :(
http://pastebin.com/0siKTQTc

Thank you!

@chao
Copy link
Owner

chao commented Apr 24, 2012

Well, the idea is to show indent XML and highlighted result in the preview tab. And show highlight without indent result in highlight tab.

@aspender
Copy link
Author

Tried out 2.0.1 - looks ok to me. I'm fine with the preview showing indented and highlight not. Preview wasn't handling XML well at all in 2.0.0 but looks good now.

@Vest
Copy link

Vest commented Apr 24, 2012

Chao, I understand the idea. However in my case, I want to select the response, copy and paste it to a document (e.g. word). With the preview tab I get a mess of tables, but with the highlight I have a mess of line numbers, and non-formatted XML markup :(
Maybe you can take into consideration a new feature that allows to implement the indentation functionality to the Highlight tab. I do not want to use online XML format tools.

Thank you in advance.

@chao
Copy link
Owner

chao commented Apr 24, 2012

Okay, I will try to add this feature to 2.0.2

@Vest
Copy link

Vest commented Apr 24, 2012

Thank you, Chao.
I hope I did not bother you much :)

chao added a commit that referenced this issue Apr 24, 2012
@chao chao closed this as completed May 21, 2012
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

4 participants