Indentation is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ktexteditor (Ubuntu) |
Fix Released
|
Medium
|
Simon Quigley | ||
Artful |
Fix Released
|
Medium
|
Simon Quigley | ||
Bionic |
Fix Released
|
Medium
|
Simon Quigley |
Bug Description
For 17.10, please treat this as a 0-day SRU bug report.
[Impact]
Without this fix, in any text editor that uses this framework (Kate and KDevelop are two of them), the text editor unexpectedly and automatically indents when the user types any of the following characters directly after a function (which is indented): u, n, d, e, f, i and n
[Test Case]
1. Open Kate.
2. On the lower right corner, set the syntax highlighting to Python (default for .py files).
3. Type the following code, go to a new line, and backspace so your cursor is not indented like the print function:
def func():
print("foo")
4. Type "abcd"
The cursor should stay where it is, but instead after pressing "d" it autoindents.
[Regression Potential]
There is little to no regression potential, unless somehow the trigger character is undefined but needs to automatically indent for some reason (which, it should be defined in the template anyways, it shouldn't need hardcoding in this spot).
Changed in ktexteditor (Ubuntu Artful): | |
assignee: | nobody → Simon Quigley (tsimonq2) |
importance: | Undecided → Critical |
importance: | Critical → Medium |
status: | New → Confirmed |
milestone: | none → artful-updates |
Changed in ktexteditor (Ubuntu Artful): | |
status: | Fix Committed → Fix Released |
Hello Simon, or anyone else affected,
Accepted ktexteditor into artful-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ ktexteditor/ 5.38.0- 0ubuntu1. 1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification- needed- artful to verification- done-artful. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- artful. In either case, details of your testing will help us make a better decision.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance!