[MacPorts] #39621: miriad: let MacPorts do the word wrapping in the notes
#39621: miriad: let MacPorts do the word wrapping in the notes --------------------------+--------------------- Reporter: ryandesign@… | Owner: peter@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: | Port: miriad --------------------------+--------------------- The miriad port hardcodes newlines into its notes: {{{ $ port notes miriad miriad has the following notes: MIRIAD programs are not in your $PATH by default. You need to run 'source /opt/local/lib/miriad/automiriad.sh' to set up your shell environment to use MIRIAD. (Source /opt/local/lib/miriad/automiriad.csh if you use csh or tcsh.) *** The 'source' keyword is important here! *** You can put this command in your .profile or other shell initialization files to have your shells automatically set up to use MIRIAD. }}} miriad should allow MacPorts to do the word wrapping at the width of the user's terminal. This is accomplished by placing the entire notes into a single Tcl string. If it is desired to wrap lines for better readability in the portfile, end such lines with a backslash, without any preceding whitespace. When actually wanting to start a newline in the displayed notes, simply insert an actual newline character. Here is an example: {{{ notes " Here is the first paragraph of the\ notes. MacPorts will automatically\ wrap them to the width of the user's\ terminal. Here is a second paragraph of the\ notes. " }}} -- Ticket URL: <https://trac.macports.org/ticket/39621> MacPorts <http://www.macports.org/> Ports system for OS X
#39621: miriad: let MacPorts do the word wrapping in the notes ---------------------------+--------------------- Reporter: ryandesign@… | Owner: peter@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: miriad | ---------------------------+--------------------- Comment (by peter@…): Attached is a patch to fix this. Does the automatic linebreaking also happen for ui_msg commands? That's another case where we have some manual linebreaks in the Portfile. -- Ticket URL: <https://trac.macports.org/ticket/39621#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#39621: miriad: let MacPorts do the word wrapping in the notes ---------------------------+--------------------- Reporter: ryandesign@… | Owner: peter@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: miriad | ---------------------------+--------------------- Comment (by ryandesign@…): No, only for notes. And the long description in `port info`. -- Ticket URL: <https://trac.macports.org/ticket/39621#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#39621: miriad: let MacPorts do the word wrapping in the notes ---------------------------+--------------------- Reporter: ryandesign@… | Owner: peter@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: fixed | Keywords: Port: miriad | ---------------------------+--------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: Thanks for the patch! Committed in r107644. -- Ticket URL: <https://trac.macports.org/ticket/39621#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts