git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Gitweb indentation wrong in Internet Explorer
@ 2006-10-11 17:25 Ralf Baechle
  2006-10-11 17:47 ` Jakub Narebski
  2006-10-11 18:13 ` Gitweb indentation wrong in Internet Explorer Luben Tuikov
  0 siblings, 2 replies; 16+ messages in thread
From: Ralf Baechle @ 2006-10-11 17:25 UTC (permalink / raw)
  To: git

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/ / /g;
  	return $str;
  }

Thanks,

  Ralf  

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-10-13 15:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 17:25 Gitweb indentation wrong in Internet Explorer Ralf Baechle
2006-10-11 17:47 ` 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

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).