Support votenames longer than one line
(in fact, support votenames up to two lines long).
Signed-off-by: Thomas Hochstein <thh@inter.net>
- if ($$body =~ /\Q$config{ballotintro}\E\s+(.+?)\s*$/m) {
+ if ($$body =~ /\Q$config{ballotintro}\E\s+(.+?)\s*\n(.*?[\t ]+(\S+.+)\s*$)?/m) {
+ $voting .= " $3" if defined($3);
push (@errors, 'WrongVoting') if ($config{votename} !~ /^\s*\Q$voting\E\s*$/);
} else {
push (@errors, 'NoVoting');
push (@errors, 'WrongVoting') if ($config{votename} !~ /^\s*\Q$voting\E\s*$/);
} else {
push (@errors, 'NoVoting');