Bug 330174 - Self-closing xml tag breaks indentation
Summary: Self-closing xml tag breaks indentation
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: indentation (show other bugs)
Version: Git
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-19 22:52 UTC by Kåre Särs
Modified: 2014-01-20 00:32 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 3.12.2
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kåre Särs 2014-01-19 22:52:36 UTC
When aligning the following example XML
<tag1>
    <tag2/>
</tag1>

We get:

<tag1>
    <tag2/>
    </tag1>


Reproducible: Always
Comment 1 Kåre Särs 2014-01-20 00:06:26 UTC
Git commit 98c6e9fd68966278e411a7891a04b5bc0b76fc0b by Kåre Särs.
Committed on 20/01/2014 at 00:00.
Pushed by sars into branch 'master'.

Fix XML indentation after self-closing tags
FIXED-IN: 3.12.2

M  +4    -4    part/script/data/indentation/xml.js
A  +5    -0    tests/data/indent/xml/self_closing2/expected
A  +8    -0    tests/data/indent/xml/self_closing2/input.js
A  +5    -0    tests/data/indent/xml/self_closing2/origin

http://commits.kde.org/kate/98c6e9fd68966278e411a7891a04b5bc0b76fc0b
Comment 2 Kåre Särs 2014-01-20 00:15:53 UTC
Git commit fca567f36d58ab4c96b510ec44e16331767f79c1 by Kåre Särs.
Committed on 20/01/2014 at 00:13.
Pushed by sars into branch 'KDE/4.12'.

Fix XML indentation after self-closing tags
FIXED-IN: 3.12.2

M  +4    -4    part/script/data/indentation/xml.js
A  +5    -0    tests/data/indent/xml/self_closing2/expected
A  +8    -0    tests/data/indent/xml/self_closing2/input.js
A  +5    -0    tests/data/indent/xml/self_closing2/origin

http://commits.kde.org/kate/fca567f36d58ab4c96b510ec44e16331767f79c1
Comment 3 Kåre Särs 2014-01-20 00:32:52 UTC
Git commit 265004dfd9a375b2c86d77cea8c8484ecd873351 by Kåre Särs.
Committed on 20/01/2014 at 00:30.
Pushed by sars into branch 'master'.

Forward port: Fix XML indentation after self-closing tags
FIXED-IN: 3.12.2

A  +5    -0    autotests/input/indent/xml/self_closing2/expected
A  +8    -0    autotests/input/indent/xml/self_closing2/input.js
A  +5    -0    autotests/input/indent/xml/self_closing2/origin
M  +4    -4    src/script/data/indentation/xml.js

http://commits.kde.org/ktexteditor/265004dfd9a375b2c86d77cea8c8484ecd873351