From 06cbb69e837e25674f59db61df5438151db44867 Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Thu, 20 Jun 2002 05:56:57 +0000 Subject: [PATCH] Fix broken merge from 1.9 branch. --- ChangeLog | 4 ++++ scripts/install-info.pl | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8cd6bdb2..09147ca7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Jun 20 00:54:54 CDT 2002 Adam Heath + + * scripts/install-info.pl: Fix broken merge from 1.9 branch. + Sat Jun 1 23:22:19 CDT 2002 Adam Heath * dpkg-deb/main.c, main/main.c, main/query.c, dselect/main.cc, diff --git a/scripts/install-info.pl b/scripts/install-info.pl index f4ad0ceb..d5b5a405 100755 --- a/scripts/install-info.pl +++ b/scripts/install-info.pl @@ -219,11 +219,22 @@ $name: unable to determine description for \`dir' entry - giving up } $align--; $calign--; + $lprefix= length($cprefix); + if ($lprefix < $align) { + $cprefix .= ' ' x ($align - $lprefix); + $lprefix= $align; + } + $prefix= "\n". (' 'x $calign); $cwidth= $maxwidth+1; for $_ (split(/\s+/,$description)) { $l= length($_); $cwidth++; $cwidth += $l; + if ($cwidth > $maxwidth) { + $infoentry .= $cprefix; + $cwidth= $lprefix+1+$l; + $cprefix= $prefix; $lprefix= $calign; + } $infoentry.= ' '; $infoentry .= $_; } -- 2.39.5