--- at/lib/TWiki/Plugins/ActionTrackerPlugin.pm 2005-03-26 18:38:43.000000000 +0100 +++ lib/TWiki/Plugins/ActionTrackerPlugin.pm 2005-07-19 20:48:19.000000000 +0200 @@ -33,7 +33,7 @@ $pluginName $defaultFormat $calendarIncludes ); -$VERSION = 2.022; +$VERSION = 2.023; $initialised = 0; $pluginName = "ActionTrackerPlugin"; $installWeb = "TWiki"; @@ -231,7 +231,7 @@ # the beforeSaveHandler that they have to handle the fields of the # edit differently my $fields = $query->hidden( -name=>'closeactioneditor', -value=>1 ); - $fields .= $query->hidden( -name=>'cmd', -value=>"" ); + $fields .= $query->hidden( -name=>'cmd', -value=>"" ); # NielsKoldso 19-Jul-05: Guess this may be removed, does not seems to be used anywhere # Throw away $_[0] and re-read the topic, extracting meta-data. # Oh, how I wish the topic reading/writing was smarter! Or even @@ -318,9 +318,13 @@ $text = $action->{text}; # Process the text so it's nice to edit. This gets undone in Action.pm # when the action is saved. - $text =~ s/^\t/ /gos; - $text =~ s//\n/gios; - $text =~ s//\n\n/gios; + $text =~ s/\t/ /gos; # TWiki stores tripple-spaces as tab + unless(_getPref('DISABLE_NEWLINE_TRANSLATION',0)) + { + # NielsKoldso: 19-Jul-05 Allow non-translation of newlines (i.e. newlines are literal in actions) + $text =~ s//\n/gios; + $text =~ s//\n\n/gios; + } $tmpl =~ s/%TEXT%/$text/go; $tmpl =~ s/%HIDDENFIELDS%/$fields/go;