Menu

#109 Source formatter does not make tabs 4 column wide

v0.3.0
closed-fixed
LeO
Editor (234)
5
2005-01-25
2004-12-02
No

When i press [ctrl]+[shift]+[f] (format source), I get 8
columns wide tabs in the source, and not 4 columns,
although i tried to force it to make (the default) 4
columns, by passing -i=4 to perltidy.

If I change -i=4 to for example -i=3, it works, the
sources are formatted using tabs that have only 3
columns.

This happens on both E-P-I-C version 0.3.0 and 0.3.8
Eclipse Version: 3.0.1
Perl Version: 5.8.4
PerlTidy Version: 20031021
Using Linux.

Note that if I run perltidy by hand on the same sources, it
formats them good, so I suspect something is wrong
when calling perltidy to format the source from E-P-I-C.

Discussion

<< < 1 2 (Page 2 of 2)
  • LeO

    LeO - 2004-12-09

    Logged In: YES
    user_id=703323

    what confuses here is the mixing of 'space' with 'tab' as
    well as how Eclipse represents a single tab.

    if you have editor=2 you have 2 spaces, while editor=4 then
    you get 4 spaces. If you have editor=2 and i=4 => you get 2
    tabs, cause that's the representation in Eclipse.

    What about the option suggested at 11:50? same or different
    result.

    For the '-l' please open a new Bug with sample and log.

     
  • LeO

    LeO - 2005-01-25
    • status: open --> closed-fixed
     
  • LeO

    LeO - 2005-01-25

    Logged In: YES
    user_id=703323

    Don't know if there was a bug at all, but fix is provided.

     
  • George Nistorica

    Logged In: YES
    user_id=950889

    i've just updated;
    using spaces instead of tabs now, gives the desired result

     
<< < 1 2 (Page 2 of 2)

Log in to post a comment.