]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installdocs
dh_installdocs: Loosen the Document field parsing, to accept everything doc-base...
[debhelper.git] / dh_installdocs
index 87954116b3fd3b5d9f4d31a0b61e73f8e613e581..1226cf8fabe4bebd5ccc1d9a4ae009c81e3507af 100755 (executable)
@@ -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;
                        }