Re: indented code

Samuel Thibault <[email protected]> Fri, 17 Feb 2006 09:35:14 +0100
Newsgroups gmane.linux.redhat.blinux.devel
Message-ID <[email protected]>
Hi,

Karl Dahlke, le Thu 16 Feb 2006 21:00:35 +0000, a =E9crit :
> Indent can be told to format in precisely this way.
> The following .indent.pro file seems to do a pretty good job for all pa=
rties,
> and I will probably apply it to my edbrowse code in the next few days.

Great :)

> Any thoughts on these settings, from a blind or sighted perspective?

It seems good, I have just a few remarks:
- Why using 4 spaces? You can just use tabs and let the user choose his
  tab size.
- Keeping if(n < CHUNKSIZE) break; on a single line doesn't hurt that
  much for sighted people, and is quite more readable on braille
  devices. However, I couldn't find an indent option for preventing him
  from adding a newline. Maybe we could ask upstream for such option.

Regards,
Samuel