neyestrabelli / xml-formatter

Simple XML Formatter for Atom
MIT License
22 stars 7 forks source link

Text nodes break formatting #20

Open gerrywastaken opened 9 years ago

gerrywastaken commented 9 years ago

If I have the following XML

<?xml version="1.0" encoding="UTF-8"?>
<Main>
  <Sub>
    <Inner></Inner>
    content
  </Sub>
  <Sub>
    <Inner></Inner>
    content
  </Sub>
</Main>

Formatting it returns the following:

<?xml version="1.0" encoding="UTF-8"?>
<Main>
  <Sub>
    <Inner>
      </Inner>    content  </Sub>
      <Sub>
        <Inner>
          </Inner>    content  </Sub>
        </Main>
genofire commented 7 years ago

Somethink else happen on my system 😢

goalaleo commented 5 years ago

Can confirm. For me the following node is not formatted properly

      <SPEECH>
        <SPEAKER>MACBETH</SPEAKER>
        <LINE>
          <STAGEDIR>Aside</STAGEDIR>          lamis, and thane of Cawdor!        </LINE>
          <LINE>The greatest is behind.</LINE>
          <STAGEDIR>To ROSS and ANGUS</STAGEDIR>
          <LINE>Thanks for your pains.</LINE>
          <STAGEDIR>To BANQUO</STAGEDIR>
          <LINE>Do you not hope your children shall be kings,</LINE>
          <LINE>When those that gave the thane of Cawdor to me</LINE>
          <LINE>Promised no less to them?</LINE>
        </SPEECH>