Code: Select all
for(;;)
{
while()
{
if()
{
doIt();
}
}
}
Adds extra space to the beginning of each block (without just being an empty line). Occasionally I'll add a newline to one of the closing braces (to show the difference between the last if in a loop and the end of a loop, for example) but normally I find it looks just fine like above.
[EDIT: Heh, didn't realize that this was my first post. I swear I had posted before.... This thread didn't have any replies when I first posted, so my post was made without any of the information in the replies. I'm of the camp "it doesn't matter, just be consistent (and don't use GNU style)".]
[EDIT 2: OH! The thread I posted in was moved into the religious wars whitespace/braces thread. That makes a lot more sense.]