All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Slaby <jirislaby@gmail.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Li Yang-r58472 <LeoLi@freescale.com>, linux-kernel@vger.kernel.org
Subject: Re: Lindent and coding style
Date: Mon, 20 Mar 2006 15:50:40 +0059	[thread overview]
Message-ID: <441EC157.2030103@gmail.com> (raw)
In-Reply-To: <1142865404.20050.29.camel@localhost.localdomain>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alan Cox napsal(a):
> On Llu, 2006-03-20 at 19:32 +0800, Li Yang-r58472 wrote:
>> There is a lindent script in linux kernel source.  It breaks long
>> lines, but uses space instead of tab as indentation.  However, the
>> codingstyle document also from the kernel source indicates no space is
>> allowed for indentation.  Is there a fix for this problem?  Or the
>> result from lindent(space indentation) is actually allowed in kernel
>> source?  Thanks.
>>
> 
> It should produce suitable output. Do you have examples of where it
> produces space indentation and you expect tabs ?
As far as I know, it produces:
<tab>	if (very long condition &&
<tab>   ssss2nd condition)...
where ssss are four spaces. Maybe this is considered as well formed at all, but
I indent 3 tabs in this case.

regards,
- --
Jiri Slaby         www.fi.muni.cz/~xslaby
\_.-^-._   jirislaby@gmail.com   _.-^-._/
B67499670407CE62ACC8 22A032CC55C339D47A7E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEHsFXMsxVwznUen4RAsGBAJ9wP+y7teZrFQNeNnBDIx0lSfBP+QCguLwx
IAvBdGnkp8Y/Ft9yOH7m3js=
=4zgg
-----END PGP SIGNATURE-----

  reply	other threads:[~2006-03-20 14:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 11:32 Lindent and coding style Li Yang-r58472
2006-03-20 14:36 ` Alan Cox
2006-03-20 14:51   ` Jiri Slaby [this message]
2006-03-20 16:12     ` Xavier Bestel
2006-03-20 16:21       ` Jiri Slaby
2006-03-20 16:28         ` Xavier Bestel
  -- strict thread matches above, loose matches on Subject: below --
2006-03-21  2:55 Li Yang-r58472
2006-03-21 10:22 ` Alan Cox
2006-03-21  2:58 Li Yang-r58472

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=441EC157.2030103@gmail.com \
    --to=jirislaby@gmail.com \
    --cc=LeoLi@freescale.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.