Summary: | xml indentation works incorrectly | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Martin Steigerwald <martin.steigerwald> |
Component: | indentation | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | christoph, spikethehobbitmage |
Priority: | NOR | ||
Version First Reported In: | 22.12.3 | ||
Target Milestone: | --- | ||
Platform: | Debian unstable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Martin Steigerwald
2023-08-01 09:12:31 UTC
For a few tags combinations like <ul> <li> indentation still seems to work correctly. However when adding another "<li>"-tag I get this: <ul> <li>Some text</li> <li> Second "<li>"-tag is on same level than "<ul>"-tag. I have also seen this: <title>Some title</title> <ul> <li> I.e. Kate moves "<ul>"-tag out one level under a "<title>"-tag. As written with "<ul>"-"<li>" combo indentation is okay. It seems that Kate does not treat all tags equal anymore. I do not see a pattern there so far. Seems kind of erratic to me. Help to improve that script is for sure welcome, it is done internally via some javascript, are you interested to help out with that? Hi Christoph. I actually see no need to improve it. In case I have not been clear: This is a regression. It worked before. No idea why it does not work correctly anymore. However… if I know where to look for that JavaScript I could have a look. I am not sure whether I'd find anything though. But at least I could have a look whether that JavaScript was changed recently, cause if not, it must have been some other change that caused the regression. Hi, that is the script that handles it https://invent.kde.org/frameworks/ktexteditor/-/blob/master/src/script/data/indentation/xml.js This bug is a whitespace issue. The XML indenter doesn't like tab characters. |