Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762709AbXF1GaM (ORCPT ); Thu, 28 Jun 2007 02:30:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758415AbXF1G37 (ORCPT ); Thu, 28 Jun 2007 02:29:59 -0400 Received: from nz-out-0506.google.com ([64.233.162.233]:24684 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758190AbXF1G37 (ORCPT ); Thu, 28 Jun 2007 02:29:59 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YxqpJ0D5OAti3kU2RwlvNW77Td06VcbUgcpG4LlMYRC9fEkWuQLFJGdGrnDbbdJuTUHEr0m14oXsmQE7pv4Yzp7vrbEUIo1FdaShvxHlV0xVRbwaF8S75GHz0HX/EAyYjEJV5DFYAHylydZhXQwAa3zr0+k+0xDCN8YTZ7oqh8g= Message-ID: Date: Thu, 28 Jun 2007 06:29:54 +0000 From: "dave young" To: "Josh Triplett" Subject: Re: [PATCH] CodingStyle: Add information about trailing whitespace. Cc: "Jan Engelhardt" , "Chris Shoemaker" , "Josh Triplett" , linux-kernel@vger.kernel.org, akpm@linux-foundation.org In-Reply-To: <46835047.8080600@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1182967160.8970.108.camel@josh-work.beaverton.ibm.com> <20070627180552.GA746@pe.Belkin> <46835047.8080600@kernel.org> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2060 Lines: 51 >2007/6/28, Josh Triplett : > dave young wrote: > > 2007/6/27, Jan Engelhardt : > >> On Jun 27 2007 14:05, Chris Shoemaker wrote: > >>> What I'd really like to see is, _why_ is trailing whitespace > >>> considered harmful? > >> Consumes bytes you'll never see :) > >> > >>> Something about MUAs not preserving it or something? > >> Well, there is format=flowed. text/plain mails with a trailing blank at the end > >> of line indicates the paragraph continues -- as a curtesy for mail readers with > >> non-fixed-font to display the paragraph coherently rather than breaking it at > >> 72/80 columns. > >> > >> > >> Jan > >> -- > >> - > >> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > >> the body of a message to majordomo@vger.kernel.org > >> More majordomo info at http://vger.kernel.org/majordomo-info.html > >> Please read the FAQ at http://www.tux.org/lkml/ > >> > > > > There's more potential to cause lines end with whitespace. How about > > remove the "Some editors with ..." like this : > > > > +Do not leave trailing whitespace at the ends of lines. > > + > [...] > > Many other causes for trailing whitespace exist. However, I wanted to mention > one of the common causes. If you have other common causes in mind, and even > better if you have ways to avoid them, we should add those too. > > It might make sense to put a paragraph break after the first sentence, though, > and split the information about editors into its own paragraph, adding more > paragraphs if people suggest other possibilities. > IMHO, another cause of trailing whitespace is human error, for example long lines breaking will easy to cause the first line with one traling whitespace (original space between the last two words). Regards dave - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/