https://bugs.kde.org/show_bug.cgi?id=472870
Bug ID: 472870 Summary: xml indentation works incorrectly Classification: Applications Product: kate Version: 22.12.3 Platform: Debian unstable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: indentation Assignee: kwrite-bugs-n...@kde.org Reporter: martin.steigerw...@proact.de Target Milestone: --- SUMMARY Since a while XML indenting does not work correctly anymore. One example, when typing: <slide toc="yes"> <title and then closing the "<title>"-Tag with ">" Kate moves it onto the same level as the "<slide>"-Tag On the other hand in case I do not indent the "<title>"-tag myself it does not indent it automatically but keeps it sitting on the same level as the "<slide>"-Tag. This happens with tabs as spaces and tabs as tabs. However when playing around with indentation settings, sometimes I can get it to work correctly. I did not yet figure out how and it usually does not last long. So it may be necessary to replicate the exact indentation settings. I shared the mode line I use at the end of the report. There other issues with XML indentation which basically renders the feature not only useless but it hinders working on an XML documentation. Thus I can work more productively when disabling indenting completely. My suspicion is that this is related to some recent KDE Frameworks update, cause Kate was not updated in Debian since Debian Bookworm release and indentation worked correctly about 1 or 2 months ago AFAIR. KDE Frameworks got at least one update. I hope to get my hands on a newer Kate version soon enough, but Debian/Ubuntu Qt/KDE packaging team is also working on Qt 6 as a prerequisite for introducing Plasma 6 to Debian later in the year. So not sure when they will package Kate 23.04 or even better 23.08. STEPS TO REPRODUCE 1. Try above example with XML indenting on You could also use the mode line I pasted below for exact indentation settings. OBSERVED RESULT As above. EXPECTED RESULT Kate keeps the indentation or… in case I do not indent myself indents the "<title>"-Tag automatically. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Devuan GNU/Linux 6 on Kernel 6.4.0-1-amd64 (that is Devuan Ceres tracking Debian Sid) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.107.0 Qt Version: 5.15.10 ADDITIONAL INFORMATION I use the following mode line: <!-- kate: indent-mode xml; indent-width 4; line-numbers true; remove-trailing-spaces all; syntax XML; tab-indents true; tab-width 4; --> This makes it more difficult to disable XML indenting temporarily as Kate seems to enable it again when I save the document. -- You are receiving this mail because: You are watching all bug changes.