Skip to content

Commit

Permalink
Item802: use sep= everywhere
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FormPlugin@2063 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Jan 20, 2009
1 parent 8c3781d commit 2c15e78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Foswiki/Plugins/FormPlugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ $formStart =~ s/\n/$SEP/eg; #unhappily, CGI::start_multipart_form adds a \n,
-name => 'redirectto',
-default => $redirectto
) if $redirectto;

$formStart =~ s/\n/$SEP/ge if ($SEP ne "\n"); #again, breaks table generation

return $formStart;
}
Expand All @@ -719,6 +721,9 @@ sub _endForm {
my $endForm = '</div><!--/FormPlugin form end-->' . CGI::end_form();
$endForm = '' if ( $currentForm{'noFormHtml'} );
_initValues();

$endForm =~ s/\n/$SEP/ge if ($SEP ne "\n"); #breaks table generation

return $endForm;
}

Expand Down Expand Up @@ -874,6 +879,8 @@ sub _formElement {
# error feedback
$format = '<a name="' . _anchorLink($name) . '"></a>' . "$SEP" . $format;

$format =~ s/\n/$SEP/ge if ($SEP ne "\n"); #again, breaks table generation

return $format;
}

Expand Down

0 comments on commit 2c15e78

Please sign in to comment.