On 9/8/2010 at 06:31 PM, Karl Eichwalder <[email protected]> wrote:
> Johannes Meixner <[email protected]> writes:
>
> >> I think it used to work that way in the past. At least, it was possible
> >> to pre-format the texts in the PDB somehow and it got properly exported
> >> from the PDB suitable for yast and (in the very past) for the package
> >> list on the Web.
> >
> > For current products the PDB is no longer used at all
> > so that any kind of special pre-format is no longer available.
> >
> > Therefore YaST (or whatever tool which shows RPM description texts)
> > must be prepared to display plain text descriptions correctly.
>
> Yes, that's the problem. Is this format ("plain text") described
> somewhere? As you said previously, yast probably honors two \n on a row
> as a paragraph separator.
# rpm -q --qf '%{DESCRIPTION}' $PACKAGE | sed \
-e 's/\&/\&/g' \
-e 's/</\</g' \
-e 's/>/\>/g' | awk \
'BEGIN { print "<pre>" } { print } END { print "</pre>" }'
;-)
Seriously, yeah, plain text is notoriously difficult to interpret...
Tim
--
Tim Serong <[email protected]>
Senior Clustering Engineer, OPS Engineering, Novell Inc.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]