Tags:
create new tag
, view all tags

Bug: rdiff produces invalid html

Output:

<a&nbsp;href="...">name</a>
The following patch to bin/rdiff fixes this (puts a tab after the <a to avoid replacement)

  • rdiff.patch: patch to avoid replacing spaces by bsps in tags

-- ColasNahaboo - 09 Aug 2002

Thanks Colas. Is fixed, in TWikiAlphaRelease and TWiki.org. Clean fix:


101,102c101
<     $user = &TWiki::userToWikiName( $user );
<     my $revInfo = &TWiki::getRenderedVersion( "$date GMT - $user" );
---
>     $user = TWiki::getRenderedVersion( TWiki::userToWikiName( $user ) );
105c104
<         $revInfo =~ s/ \- [0-9]*\:[0-9]*(?:\sGMT)*//go;
---
>         $date =~ s/ \- [0-9]*\:[0-9]+$//go;
107c106,108
<         $revInfo =~ s/ /\&nbsp\;/go;
---
>         $date =~ s/ /\&nbsp\;/go;
>     } else {
>         $date .= " GMT";
109a111
>     my $revInfo = "$date - $user";

- PeterThoeny - 09 Aug 2002

Topic attachments
I Attachment Action Size Date Who Comment
Unknown file formatpatch rdiff.patch manage 0.4 K 2002-08-09 - 09:22 ColasNahaboo patch to avoid replacing spaces by bsps in tags
Topic revision: r2 - 2002-08-09 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.