Menu

#237 the -guess_indent config file option is broken

closed
nobody
5
2008-10-31
2008-10-31
Jari Aalto
No

Cf. Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=430565

Please let me know if this has been fixed in later versions.

ackage: joe
Version: 3.5-1.1
Severity: normal

The -guess-indent config file option forces the istep option to be either 1
(if it determines that the indent character is tab) or 2 (if indent char is
space). The setting in the -istep option is then ignored, and there is no
way to have both "-guess-indent" and "-istep 3."

The code in question is in b.c around line 2340.

I expect it to work this way:
- if the indent char is tab, set istep to 1,
- if it is space, use the -istep setting.

Is such an algorithm possible?

Discussion

  • Joe Allen

    Joe Allen - 2008-10-31

    This is fixed in JOE 3.6 (it now does just as the bug reporter suggests). However in JOE 3.7 I'm working on a better guessing algorithm which may or may not make it into JOE 3.7.

     
  • Joe Allen

    Joe Allen - 2008-10-31
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB