Bug 454292

Summary: No Indentation in Kwrite
Product: [Applications] kate Reporter: abin <abin.gecb>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: 21.12.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.