Browse Source

* Joey Hess

-  Don't require whitespace after keys with multiline values. Closes: #286054
tags/2.19
Joey Hess 16 years ago
parent
commit
06b41fd8e9
2 changed files with 4 additions and 2 deletions
  1. +2
    -0
      debian/changelog
  2. +2
    -2
      tasksel.pl

+ 2
- 0
debian/changelog View File

@@ -2,6 +2,8 @@ tasksel (2.19) UNRELEASED; urgency=low

* Christian Perrier
- Fix typo in README. Closes: #286053
* Joey Hess
- Don't require whitespace after keys with multiline values. Closes: #286054

-- Christian Perrier <bubulle@kheops.frmug.org> Fri, 17 Dec 2004 09:58:18 +0100



+ 2
- 2
tasksel.pl View File

@@ -39,13 +39,13 @@ sub read_task_desc {
my @lines=split("\n");
while (@lines) {
my $line=shift(@lines);
if ($line=~/^([^ ]+): (.*)/) {
if ($line=~/^([^ ]+):(?: (.*))?/) {
my ($key, $value)=($1, $2);
$key=lc($key);
if (@lines && $lines[0] =~ /^\s+/) {
# multi-line field
my @values;
if (length $value) {
if (defined $values && length $value) {
push @values, $value;
}
while (@lines && $lines[0] =~ /^\s+(.*)/) {


Loading…
Cancel
Save