[MacPorts] #14037: whitespace should be normalized in variant descriptions before being shown
#14037: whitespace should be normalized in variant descriptions before being shown -------------------------------------+-------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@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
#14037: whitespace should be normalized in variant descriptions before being shown --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Comment (by raimue@macports.org): I implemented this in r33289. Please test! -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14037#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#14037: whitespace should be normalized in variant descriptions before being shown --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: raimue@macports.org Type: defect | Status: new Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Resolution: | Keywords: --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * owner: macports-tickets@lists.macosforge.org => raimue@macports.org Comment: Wow, I didn't realize it would be that easy. Thanks! Works great as far as I can tell. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14037#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#14037: whitespace should be normalized in variant descriptions before being shown --------------------------------------+------------------------------------- Reporter: ryandesign@macports.org | Owner: raimue@macports.org Type: defect | Status: closed Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: 1.7.0 Resolution: fixed | Keywords: --------------------------------------+------------------------------------- Changes (by ryandesign@macports.org): * status: new => closed * resolution: => fixed -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/14037#comment:3> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts