Item10644: bin/changes output is corrupted
Priority: Normal
Current State: Closed
Released In: 1.1.4
Target Release: patch
There appear to be a couple of issues to the old
bin/changes
script output.
-
Foswiki::UI::Changes
calls Meta::summariseChanges
without passing the 'TML' option, so the change is a plain text (+ / -) diff style output. The script should generate TML for rendering.
- The %AUTHOR% substitution in the template is corrupted.
I suspect the corruption of the AUTHOR is due to the changes to the templates to make sure that
WikiNames are never rendered as broken links. Changes uses the
search.pattern.tmpl
: to display the results, The corrupted author is coming from the following:
<span class="foswikiSRAuthor">%MAKETEXT{"by [_1] " args="%IF{"istopic '%AUTHOR%'" then="[[%AUTHOR%][$wikiname]]" else="$wikiname"}%"}%</span>
Where is $wikiname set from? The Changes script only sets %AUTHOR% However for some reason in the generated html, the truncated link is generated using <
--
GeorgeClark - 17 Apr 2011