summaryrefslogtreecommitdiffstats
path: root/perl-install/common.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-07-09 22:48:04 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-07-09 22:48:04 +0000
commitc24f9dfdd1534e69a9feedd1460c2f45970515eb (patch)
tree6f8d1a45fb1878e86e69bb9d0aba13c5a4b2708f /perl-install/common.pm
parent20577683bbc683eba08756937e9cca01b8354f57 (diff)
downloaddrakx-backup-do-not-use-c24f9dfdd1534e69a9feedd1460c2f45970515eb.tar
drakx-backup-do-not-use-c24f9dfdd1534e69a9feedd1460c2f45970515eb.tar.gz
drakx-backup-do-not-use-c24f9dfdd1534e69a9feedd1460c2f45970515eb.tar.bz2
drakx-backup-do-not-use-c24f9dfdd1534e69a9feedd1460c2f45970515eb.tar.xz
drakx-backup-do-not-use-c24f9dfdd1534e69a9feedd1460c2f45970515eb.zip
move join_lines to common
Diffstat (limited to 'perl-install/common.pm')
-rw-r--r--perl-install/common.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/perl-install/common.pm b/perl-install/common.pm
index f39cda588..a673dce04 100644
--- a/perl-install/common.pm
+++ b/perl-install/common.pm
@@ -166,6 +166,20 @@ sub take_screenshot {
$in->ask_warn('', _("Screenshots will be available after install in %s", "/root/DrakX-screenshots")) if $warn;
}
+sub join_lines {
+ my @l;
+ my $s;
+ foreach (@_) {
+ if (/^\s/) {
+ $s .= $_;
+ } else {
+ push @l, $s if $s;
+ $s = $_;
+ }
+ }
+ @l, if_($s, $s);
+}
+
#-######################################################################################
#- Wonderful perl :(
#-######################################################################################