-
Notifications
You must be signed in to change notification settings - Fork 453
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
Beautify only selected area results in entire file beautification when "Beautify Entire File On Save" enabled #103
Comments
Beautifying a selection should work as you described. What version of Atom Beautify are you running currently? |
Here is more short sample file for reproduce.
Save file as "asdf.xml" then select xml part, beautify it. |
Beautification works for me: BeforeHTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Connection: close
Content-Length: 2189
Server: 3.16.1-1-ARCH DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
Content-Language: en
Date: Sat, 20 Sep 2014 12:19:00 GMT
EXT:
<?xml version="1.0" ?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
</root> AfterHTTP/1.1 200 OK
Content-Type: text/xml; charset="utf-8"
Connection: close
Content-Length: 2189
Server: 3.16.1-1-ARCH DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.1.4
Content-Language: en
Date: Sat, 20 Sep 2014 12:19:00 GMT
EXT:
<?xml version="1.0" ?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
</root> Have you made any progress/work-around on this? Is this problem still occurring for you? |
Yes, still. Both whole file or selected region.
|
I'm experiencing similar issue with atom 0.139 and atom-beautify 0.14.1. |
@dontdieych @Glavin001 Ah: unchecking 'Beatify entire file on save' in settings fixes this for me. |
@anandthakker confirmed on atom 0.139 and atom-beautify 0.14.1. |
To confirm, this is a bug that |
@Glavin001 Yep! |
Thanks, @anandthakker. I can reproduce this error when I enable |
Published to v0.15.1. Thank you everyone for your feedback and patients! |
Beautify works well only selected area no matter what "Beautify Entire File On Save" option.
Thanks |
It is packet capture from wireshark. If I set this file type as
xml
then select only xml part then beautify, http header parts are also bautified(became big one line).Workaround is comment out that header then beautify(selection or whole file).
Is that poissible "beautify this selection as xml whatever current file is"?
The text was updated successfully, but these errors were encountered: