Ben Hutchings wrote: > --- a/Debconf/FrontEnd/Dialog.pm > +++ b/Debconf/FrontEnd/Dialog.pm > @@ -163,7 +163,13 @@ > my $lines = $this->screenheight; > my ($text, $height, $width)=$this->sizetext($intext); > > - my @lines = split(/\n/, $text); > + sub hide_escape { > + my $line = $_; > + $line =~ s/\\n/\\\xe2\x81\xa0n/g; > + return $line; > + } > + > + my @lines = map(&hide_escape, split(/\n/, $text)); > my $num; > my @args=('--msgbox', join("\n", @lines)); > if ($lines - 4 - $this->borderheight <= $#lines) { > --- END --- > > I also tried writing the ZWJ character as \x{2060}.
FYI, all you got wrong was not doing the escaping in all the callpoints for dialog. -- see shy jo
signature.asc
Description: Digital signature