#449 Indentation guides on empty lines

closed-wont-fix
nobody
Interface (176)
2
2012-09-14
2010-03-18
No

Geany version 0.19 "Vellam" (SVN from 2010-03-10).
When "Show indentation guides" is activated the indentation lines are shown even when the line is empty (see attached screenshot, line 107). This only happens inside a blocjk of code. Outside de code block the indentation guide is absent (see attached screenshot, line 117).
Maybe this is a feature, although a bit misleading, and not a bug.

Discussion

  • Nick Treleaven

    Nick Treleaven - 2010-03-19

    Not sure if this can be improved. I assume you're using C++, for Python this bug doesn't occur. But the Python behaviour might not suit all C constructs.

    As a workaround maybe you could enable 'show whitespace' to avoid confusion with empty lines.

     
  • Nick Treleaven

    Nick Treleaven - 2010-03-19
    • priority: 5 --> 2
     
  • Lucas Vieites

    Lucas Vieites - 2010-03-22

    I'm attaching another screenshot, this time of a Python source file (the first one was Java). On this image the lines 67, 69 and 72 have no spaces at all in them, yet on lines 67 and 69 the indentation guide is shown.
    I agree, this is a minor bug (merely aesthetic).

     
  • Lucas Vieites

    Lucas Vieites - 2010-03-22

    Screenshot showing the bug in a Python source file

     
  • Nick Treleaven

    Nick Treleaven - 2010-03-25

    OK. This is by design though (I consider it a feature). We could add a hidden pref perhaps.

     
  • Lex Trotman

    Lex Trotman - 2012-09-14

    Not having the indentation guides break within a block allows them to also function as a block indicator, this is a feature not a bug. Thus the Python case is also correct, a blank line followed by an outdent is not part of the block.

     
  • Lex Trotman

    Lex Trotman - 2012-09-14
    • status: open --> closed-wont-fix
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks