Update of bug #67231 (group groff):

              Item Group:     Incorrect behaviour => Documentation
                 Summary: [troff] applying `length` request to macro causes
spurious output => [troff] applying `length` request to macro or driversion
can cause spurious output

    _______________________________________________________

Follow-up Comment #2:

Hrrmph.  With `length` having enjoyed 25 years in the field, I don't have the
nerve to change its semantics, so I guess to fry the fish I want to fry, I'll
need to wait to implement an iterator request.

I'll be adding something like this to our docs.  Here's the Texinfo version.


@strong{Caution:@:}                                                      
If you interpolate a macro or diversion in                               
@var{contents}                                                           
(@pxref{Punning Names}),                                                 
the                                                                      
@code{length}                                                            
request counts characters                                                
(or nodes)                                                               
only up to the first newline,                                            
and leaves the rest on the input stream.                                 
In conventional circumstances,                                           
that means the remainder is interpreted,                                 
and may be formatted.                                                    
To discover the length of any                                            
string,                                                                  
macro,                                                                   
or diversion,                                                            
use the                                                                  
@code{pm}                                                                
request.                                                                 
@xref{Debugging}.




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67231>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to