From: <Sve...@nt...> - 2005-02-27 07:27:47
|
Author: SvenDowideit Date: 2005-02-26 23:25:15 -0800 (Sat, 26 Feb 2005) New Revision: 3712 Modified: twiki/branches/DEVELOP/lib/TWiki/UI/RDiff.pm Log: NoContextRdiffFix: this is what I intended - de defaults to 3 only if you never specified number of context lines - but lest you set it to 0 to get original non-context rendering Modified: twiki/branches/DEVELOP/lib/TWiki/UI/RDiff.pm =================================================================== --- twiki/branches/DEVELOP/lib/TWiki/UI/RDiff.pm 2005-02-26 16:45:19 UTC (rev 3711) +++ twiki/branches/DEVELOP/lib/TWiki/UI/RDiff.pm 2005-02-27 07:25:15 UTC (rev 3712) @@ -310,7 +310,7 @@ $renderStyle = "sequential" if ( ! $renderStyle ); $diffType = "history" if ( ! $diffType ); - $contextLines = 3 if ( ! $contextLines ); + $contextLines = 3 unless ( defined $contextLines ); TWiki::UI::checkWebExists( $session, $webName, $topic ); |