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
elsepatch rdiff.patch manage 0.4 K 09 Aug 2002 - 09:22 ColasNahaboo patch to avoid replacing spaces by bsps in tags
Topic revision: r2 - 09 Aug 2002 - 16:46:00 - PeterThoeny
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo