Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] indenting C labels
- Date: Fri, 22 Jun 2007 22:07:50 +0900
- From: "Nguyen Vu Hung" <vuhung16plus@example.com>
- Subject: Re: [tlug] indenting C labels
- References: <78d7dd350706220039m3d1897aep24e61563759d644b@mail.gmail.com> <d8fcc0800706220123u4c652b48m929a3e2afdd3b03@mail.gmail.com> <20070622110722.GG25100@inferi.kami.home>
On 6/22/07, Mattia Dongili <malattia@example.com> wrote:On Fri, Jun 22, 2007 at 05:23:19PM +0900, Josh Glover wrote: > On 22/06/07, Nguyen Vu Hung <vuhung16plus@example.com> wrote: > > >when I run "indent -br -i8 file.c", the labels in the C are moved 0x07 > >spaces to the right of pages. > > > >But I want to indent labels to leftmost of pages. > > indent -br -i8 file.c \ > && sed -i -e 's/^[[:space:]]\+\([^:]\+:\)$/\1/' tmp/file.c
won't this also grab switch/case labels?
Yes, but we can fix that:
indent -br -i8 file.c | \ sed -i -e 's/^[[:space:]]\+\([^:]\+:\)$/\1/' | \ indent -cbi1 -cli1
-- Best Regards, Nguyen Hung Vu vuhung16plus{remove}@example.com An inquisitive look at Harajuku http://www.flickr.com/photos/vuhung/sets/72157600109218238/
- References:
- [tlug] indenting C labels
- From: Nguyen Vu Hung
- Re: [tlug] indenting C labels
- From: Josh Glover
- Re: [tlug] indenting C labels
- From: Mattia Dongili
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] indenting C labels
- Next by Date: Re: [tlug] Linux Distro Choices [was Re: Denshi Jisho]
- Previous by thread: Re: [tlug] indenting C labels
- Next by thread: [tlug] How to type macrons? [re-send in EUC-JP just for kicks]
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links