Uploaded image for project: 'Wiki Editor Tools'
  1. Wiki Editor Tools
  2. WIKIEDITOR-55

Smart indent (shift+tab) for python code results in bad indentation

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.1
    • Fix Version/s: None
    • Component/s: Syntax Highlighting
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      When selecting a piece of python script and pressing SHIFT+TAB, the indentation of the selected code will not respect its initial goal (i.e. will not be preserved relative to its inial state).

      Caused by a bug in upstream CodeMirror's python.js mode, still open even in the current 5.33 version.

      Until the upstream project or we manage to find a solution, the workaround would be to simply not use the SHIFT+TAB feature and manually handle deindentation, where needed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              enygma Eduard Moraru
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: