summaryrefslogtreecommitdiff
path: root/dh_installdocs
diff options
context:
space:
mode:
Diffstat (limited to 'dh_installdocs')
-rwxr-xr-xdh_installdocs3
1 files changed, 2 insertions, 1 deletions
diff --git a/dh_installdocs b/dh_installdocs
index 87954116..1226cf8f 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -200,7 +200,8 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
# Parse the file to get the doc id.
open (IN, "debian/$fn") || die "Cannot read debian/$fn.";
while (<IN>) {
- if (/^Document:\s+([-+.a-z0-9]+)/) {
+ s/\s*$//;
+ if (/^Document\s*:\s*(.*)/) {
$doc_ids{$fn}=$1;
last;
}