git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Whitespace and '&nbsp'
Date: Thu, 26 May 2011 15:08:44 -0700	[thread overview]
Message-ID: <BANLkTi=hYR4ow1eMR3rHkMuVRsHJ=TFDZA@mail.gmail.com> (raw)
In-Reply-To: <7vzkm9unu0.fsf@alter.siamese.dyndns.org>

On Thu, May 26, 2011 at 2:57 PM, Junio C Hamano <gitster@pobox.com> wrote:
>
> But in the longer term, I think we should find what MUA causes this
> breakage and yell at them. It might be some mail relays, but I am not sure
> where these come from.  I often see alternating real whitespace and nbsp
> in "> " indented quotes.

In this case, it was

  Content-Type: text/plain; charset=utf-8
  Content-Disposition: inline
  Content-Transfer-Encoding: 8bit
  User-Agent: Mutt/1.5.21 (2010-09-15)

so there was nothing odd in the MUA. And everything I have (gmail in
web browser, less, gnome-terminal) treats the nbsp as a regular space,
so it doesn't show up as any inverted block or anything like that for
me until I tried to compile it.

It could easily have been there in the patch originally and wasn't
compile-tested. On some keyboard layouts, AltGr+space gives a nbsp.

                        Linus

  reply	other threads:[~2011-05-26 22:09 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-26 21:12 Whitespace and '&nbsp' Linus Torvalds
2011-05-26 21:57 ` Junio C Hamano
2011-05-26 22:08   ` Linus Torvalds [this message]
2011-05-27 16:50     ` Andreas Schwab
2011-05-27 17:01       ` Linus Torvalds
2011-05-27 18:31         ` Junio C Hamano
2011-05-27 19:15           ` Junio C Hamano
2011-05-27 21:14             ` Linus Torvalds
2011-05-27 22:47               ` Junio C Hamano
2011-05-27 22:48                 ` [PATCH 1/3] ws.c: add a helper to format comma separated messages Junio C Hamano
2011-05-27 22:49                 ` [PATCH 2/3] War on nbsp: a bit of retreat Junio C Hamano
2011-05-27 22:51                 ` [PATCH 3/3] War on nbsp: Add "nbsp" whitespace breakage class Junio C Hamano
2011-05-28  1:31                 ` [PATCH 4/3] War on nbsp: teach "git apply" to check and fix nbsp Junio C Hamano
2011-05-30 12:52                 ` Whitespace and '&nbsp' Daniel Nyström
2011-05-26 22:21   ` Matthieu Moy

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='BANLkTi=hYR4ow1eMR3rHkMuVRsHJ=TFDZA@mail.gmail.com' \
    --to=torvalds@linux-foundation.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).