- my $html=$template->output;
- # escape wikilinks and preprocessor stuff
- $html=~s/(?<!\\)\[\[/\\\[\[/g;
- writefile($page."._change", $config{srcdir}, $html);
- utime $change->{when}, $change->{when}, "$config{srcdir}/$page._change";
+ my $file=$page."._change";
+ writefile($file, $config{srcdir}, $template->output);
+ utime $change->{when}, $change->{when}, "$config{srcdir}/$file";