On Sun, 2012-01-01 at 22:40 +0200, Jussi Lehtola wrote:
On Sun, 01 Jan 2012 18:01:21 +0000
Sérgio Basto <sergio(a)serjux.com> wrote:
> About indentation , I use coding style my tabs have 4 spaces.
> :vim set expandtab set softtabstop=4 set ts=4 set sw=4
>
> so all .spec have a mixed with really tabs with tabs expands in
> spaces. and I don't know what to do about.
Either use the default of 8 spaces, or convert all tabs to spaces so
that it appears the same regardless of the tab length setting.
I'm trying find fedora code style conventions, after Google it, I got:
https://fedorahosted.org/beakerlib/wiki/CodingStyle
https://fedorahosted.org/sssd/wiki/Contribute
Furthermore, we have adopted the code style and formatting specification
used by the FreeIPA project to describe our C and Python coding
styles.
http://www.freeipa.org/page/Coding_Style#Spaces_and_Indentation
MUST: No tabs all indentation 4 spaces. HIGHLY RECOMMENDED: When
wrapping lines, try to break it:
Tabs or Spaces?
For new projects, spaces-only are strongly recommended over tabs. Most
editors have features that make this easy to do.
Well I just found a easy way to "convert all tabs into spaces"
in vim do :retab reference:
http://vim.wikia.com/wiki/Converting_tabs_to_spaces
So should I retab all .spec ?
Thanks,
--
Sérgio M. B.