Mailinglist Archive: yast-devel (26 mails)

< Previous Next >
Re: [yast-devel] Displaying Package Descriptions
  • From: Karl Eichwalder <ke@xxxxxxx>
  • Date: Wed, 08 Sep 2010 13:20:13 +0200
  • Message-id: <shsk1ktrbm.fsf@xxxxxxxxxxxxxxx>
Johannes Meixner <jsmeix@xxxxxxx> writes:

On Sep 8 04:42 Tim Serong wrote (shortened):
# rpm -q --qf '%{DESCRIPTION}' $PACKAGE | sed \
-e 's/\&/\&amp;/g' \
-e 's/</\&lt;/g' \
-e 's/>/\&gt;/g' | awk \
'BEGIN { print "<pre>" } { print } END { print "</pre>" }'

Thanks, but <pre> is a no-op. These days, various PDAs with small
displays are in use, and then, there is this ncurses yast interface...

I suggest to insert a "fold -s -w 80" before the "sed"
to break possibly too long lines in the RPM description...
;-)

"80" is too long for ncurses-yast running inside a default xterm.

--
Karl Eichwalder
R&D / Documentation

SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups