Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

HTML auto indentation issue (double terminating tags) #152

Open
1 task done
nir-arad opened this issue Jan 23, 2017 · 1 comment
Open
1 task done

HTML auto indentation issue (double terminating tags) #152

nir-arad opened this issue Jan 23, 2017 · 1 comment

Comments

@nir-arad
Copy link

nir-arad commented Jan 23, 2017

Prerequisites

Description

If multiple tags are closed in the same line, and they were not all opened in the same line, auto indentation of following lines is wrong.

Steps to Reproduce

  1. In a new window, enter this code:
<html><body>
<table>
<tr><td>
<div>Table cell</div></td></tr>
</table>
</body></html>
  1. Select all (ctrl-A)
  2. Use the menus: Edit > Lines > Auto Indent

Expected behavior: [What you expect to happen]

<html><body>
  <table>
    <tr><td>
      <div>Table cell</div></td></tr>
  </table>
</body></html>

Actual behavior: [What actually happens]

<html><body>
  <table>
    <tr><td>
      <div>Table cell</div></td></tr>
    </table>
  </body></html>

Reproduces how often: [What percentage of the time does it reproduce?]
100%

Versions

You can get this information from copy and pasting the output of atom --version and apm --version from the command line. Also, please include the OS and what version of the OS you're running.

$ atom --version
Atom : 1.13.0
Electron: 1.3.13
Chrome : 52.0.2743.82
Node : 6.5.0

$ apm --version
apm 1.14.1
npm 3.10.5
node 4.4.5
python 2.7.12
git 2.7.4

$ uname -a
Linux vm0 4.9.4-100.fc24.x86_64 #1 SMP Tue Jan 17 19:08:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Fedora Core 24 inside Oracle VirtualBox 5.1.10

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

@revelt
Copy link

revelt commented Apr 19, 2018

For posterity, here's a good web app that does indentation + 1-tag-per-line: https://tools.arantius.com/tabifier

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants