All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: git@vger.kernel.org
Subject: Gitweb indentation wrong in Internet Explorer
Date: Wed, 11 Oct 2006 18:25:53 +0100	[thread overview]
Message-ID: <20061011172553.GA1147@linux-mips.org> (raw)

I have a report from an MSIE suffering user:

> When I use it (and I believe I've seen this on my laptop as well as my
> workstation) all left-hand margin whitespace is collapsed to nothingness.
> Once can still parse the code, but it's harder with no indentations.

A screenshot from a Windows laptop to illustrate the problem is at
http://www.linux-mips.org/~ralf/gitweb.png.  It shows the code was
preformatted correctly which seems to be an IE bug but the following patch
seems to work around it.

*** gitweb.cgi.dist	2006-10-09 19:02:19.561726255 +0100
--- gitweb.cgi	2006-10-09 19:03:31.744837495 +0100
***************
*** 234,239 ****
--- 234,240 ----
  	my $str = shift;
  	$str = decode("utf8", $str, Encode::FB_DEFAULT);
  	$str = escapeHTML($str);
+ 	$str =~ s/ /&nbsp;/g;
  	return $str;
  }

Thanks,

  Ralf  

             reply	other threads:[~2006-10-11 17:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-11 17:25 Ralf Baechle [this message]
2006-10-11 17:47 ` Gitweb indentation wrong in Internet Explorer Jakub Narebski
2006-10-11 18:15   ` Ralf Baechle
2006-10-11 20:53   ` Pazu
2006-10-11 21:13     ` [PATCH] Removes the <?xml?> declaration from gitweb.pl Pazu
2006-10-11 21:27       ` Jakub Narebski
2006-10-12  0:26         ` Pazu
2006-10-12  1:08         ` Pazu
2006-10-12  5:45         ` Robin Rosenberg
2006-10-12 21:21           ` Jakub Narebski
2006-10-13 13:01             ` Pazu
2006-10-13 13:07               ` Jakub Narebski
2006-10-13 14:09                 ` Pazu
2006-10-13 14:05             ` Robin Rosenberg
2006-10-13 15:09               ` Jakub Narebski
2006-10-11 18:13 ` Gitweb indentation wrong in Internet Explorer Luben Tuikov

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=20061011172553.GA1147@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=git@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.