[MacPorts] #14037: whitespace should be normalized in variant
descriptions before being shown
MacPorts
trac at macosforge.org
Tue Jan 22 12:49:51 PST 2008
#14037: whitespace should be normalized in variant descriptions before being shown
-------------------------------------+--------------------------------------
Reporter: ryandesign at macports.org | Owner: macports-tickets at lists.macosforge.org
Type: defect | Status: new
Priority: Normal | Milestone: MacPorts base bugs
Component: base | Version: 1.7.0
Keywords: |
-------------------------------------+--------------------------------------
If I define a variant description like this:
{{{
variant foo description {foodesc} {
...
}
}}}
then the description shows up properly in "`port variants <portname>`".
However if I define it this way:
{{{
variant foo description { foodesc } {
...
}
}}}
then the extra whitespace before and after the description is actually
shown by "`port variants <portname>`".
Also, if I use multiple spaces next to one another, or continue a
description onto the next line, like this
{{{
variant foo description { here is a \
long description } {
...
}
}}}
then these extra spaces are output verbatim in the "`port variants
<portname>`" command. This is in contrast with the port's long
description, where `port` seems to strip leading and trailing whitespace
and normalize runs of more than one whitespace character to a single
space.
This ticket is for the request to change "`port variants <portname>`" so
that it, too, normalizes whitespace in the variant description, just like
"`port info <portname>`" already does for the port's long description. If
the request in this ticket is implemented, then #14031 isn't needed and
should be closed as "wontfix".
--
Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14037>
MacPorts </projects/macports>
Ports system for Mac OS
More information about the macports-tickets
mailing list