From: Jakub Narebski <jnareb@gmail.com>
To: Todd Zullinger <tmz@pobox.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
Ricky Zhou <ricky@fedoraproject.org>
Subject: Re: [PATCH] Use   instead of for XHTML compliance
Date: Wed, 15 Apr 2009 17:55:04 +0200 [thread overview]
Message-ID: <200904151755.07425.jnareb@gmail.com> (raw)
In-Reply-To: <20090415154012.GX13966@inocybe.teonanacatl.org>
On Wed, 15 April 2009, Todd Zullinger wrote:
> From: Ricky Zhou <ricky@fedoraproject.org>
> ---
>
> This was noticed by the Fedora Infrastructure folks. The pages
> rendered fine in Firefox, but caused an XML error when run through tor
> and privoxy together. Part of this problem description may belong in
> the commit message -- I was hesitant to add it, as I didn't read all
> of the IRC log where the problem was noticed and debugged.
Wouldn't it be a better solution to add DTD with HTML entities if/when
gitweb serves XHTML 1.0 together application/xhtml+xml mimetype, instead
of unconditionally using what is I think worse solution? Especially that
error is I think quite rare situation and/or bug in browser...
I also don't think that the change -nbsp => -subspaces is necessary;
it causes large code churn for nothing, and name is IMVHO worse.
It is about nonbreakable and non-compactable space.
>
> gitweb/gitweb.perl | 40 ++++++++++++++++++++--------------------
> 1 files changed, 20 insertions(+), 20 deletions(-)
>
> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
> index 33ef190..55b56f7 100755
> --- a/gitweb/gitweb.perl
> +++ b/gitweb/gitweb.perl
> @@ -1042,8 +1042,8 @@ sub esc_html ($;%) {
>
> $str = to_utf8($str);
> $str = $cgi->escapeHTML($str);
> - if ($opts{'-nbsp'}) {
> - $str =~ s/ / /g;
> + if ($opts{'-subspaces'}) {
> + $str =~ s/ / /g;
> }
> $str =~ s|([[:cntrl:]])|(($1 ne "\t") ? quot_cec($1) : $1)|eg;
> return $str;
--
Jakub Narebski
Poland
next prev parent reply other threads:[~2009-04-15 15:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-15 15:40 [PATCH] Use   instead of for XHTML compliance Todd Zullinger
2009-04-15 15:50 ` Mike Hommey
2009-04-15 16:38 ` Ricky Zhou
2009-04-15 15:55 ` Jakub Narebski [this message]
2009-04-15 16:21 ` Ricky Zhou
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=200904151755.07425.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=ricky@fedoraproject.org \
--cc=tmz@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 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.