<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>330089</bug_id>
          
          <creation_ts>2014-01-17 17:45:42 +0000</creation_ts>
          <short_desc>XML indentation does not decrease indentation level with open/close tags</short_desc>
          <delta_ts>2014-03-06 20:53:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>indentation</component>
          <version>3.11.4</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Stephan Mueller">smueller</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          <cc>kare.sars</cc>
          
          <cf_commitlink>http://commits.kde.org/kate/7281db92e4d187d58ad0e5f4a632c20c36af1095</cf_commitlink>
          <cf_versionfixedin>KDE 4.12.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1425434</commentid>
    <comment_count>0</comment_count>
    <who name="Stephan Mueller">smueller</who>
    <bug_when>2014-01-17 17:45:42 +0000</bug_when>
    <thetext>The combination of blank lines and the use of open/close tags (i.e. &lt;tag/&gt;) causes the XML indentation to not indent the lines correctly. Use the following as an example:
&lt;a&gt;
        &lt;aa id=&quot;bla&quot;&gt;
                &lt;aaa id=&quot;bla&quot;&gt;
                        &lt;aaaa id=&quot;bla&quot;&gt;
                                &lt;!--
                                something--&gt;

                                &lt;bbbb/&gt;
                                &lt;i&gt;
                                        &lt;p&gt;bla&lt;/p&gt;
                                &lt;/i&gt;

                                &lt;r&gt;
                                        &lt;p&gt;bla&lt;/p&gt;
                                &lt;/r&gt;
                                &lt;e&gt;
                                        &lt;p&gt;bla&lt;/p&gt;
                                &lt;/e&gt;
                                &lt;v some=&quot;bla&quot;/&gt;
                                &lt;/aaaa&gt;

                                &lt;/aaa&gt;
                        &lt;/aa&gt;
                &lt;/a&gt;

Reproducible: Always

Steps to Reproduce:
1. Add code above into kate
2. Call extras-&gt;ausrichten (in English extras-&gt;indent ?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434217</commentid>
    <comment_count>1</comment_count>
    <who name="Kåre Särs">kare.sars</who>
    <bug_when>2014-03-06 20:26:37 +0000</bug_when>
    <thetext>Git commit dec54c31ebb1fabcbd0540e45243ad31c6636a87 by Kåre Särs.
Committed on 06/03/2014 at 20:13.
Pushed by sars into branch &apos;master&apos;.

XML indentation: fix indentation when thee are empty lines
Related: bug 331764

M  +18   -9    part/script/data/indentation/xml.js
A  +15   -0    tests/data/indent/xml/empty_lines/expected
A  +8    -0    tests/data/indent/xml/empty_lines/input.js
A  +15   -0    tests/data/indent/xml/empty_lines/origin

http://commits.kde.org/kate/dec54c31ebb1fabcbd0540e45243ad31c6636a87</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1434223</commentid>
    <comment_count>2</comment_count>
    <who name="Kåre Särs">kare.sars</who>
    <bug_when>2014-03-06 20:53:21 +0000</bug_when>
    <thetext>Git commit 7281db92e4d187d58ad0e5f4a632c20c36af1095 by Kåre Särs.
Committed on 06/03/2014 at 20:13.
Pushed by sars into branch &apos;KDE/4.13&apos;.

XML indentation: fix indentation when thee are empty lines
Related: bug 331764

M  +18   -9    part/script/data/indentation/xml.js
A  +15   -0    tests/data/indent/xml/empty_lines/expected
A  +8    -0    tests/data/indent/xml/empty_lines/input.js
A  +15   -0    tests/data/indent/xml/empty_lines/origin

http://commits.kde.org/kate/7281db92e4d187d58ad0e5f4a632c20c36af1095</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>