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 History Action Size Date Who Comment
Unknown file formatpatch rdiff.patch r1 manage 0.4 K 2002年08月09日 - 09:22 UnknownUser patch to avoid replacing spaces by bsps in tags
Edit | Attach | (削除) Watch (削除ここまで) | Print version | History : r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002年08月09日 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.

AltStyle によって変換されたページ (->オリジナル) /