Bug 454292 - No Indentation in Kwrite
Summary: No Indentation in Kwrite
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: kwrite (other bugs)
Version First Reported In: 21.12.2
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-23 17:55 UTC by abin
Modified: 2024-06-18 17:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abin 2022-05-23 17:55:40 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Create a new file say 123.html
2. type html tags like <html>, <head>,<body> etc
3. Indentation is set to normal in Settings, after entering the html tags there is no indentation, the next line will start from the very beginning. Indentation doesnt work for any of the file types

OBSERVED RESULT
Even after settting the indentation properties in the settings , indentation is not working for any of the file types. IT works if the indentation is set to XML in the settings

EXPECTED RESULT
The new line created should be properly indented for all file types

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.24.5
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.93
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Not only indentation, Keyword auto completion also not works
Comment 1 Christoph Cullmann 2024-06-18 17:32:17 UTC
That is the expected behavior of that indent mode. One could try to set xml as default for HTML, but that would break for HTML with included code like JS or PHP.

Please set it to xml in the file type config if you like xml style there, sorry that this is inconvenient for you.