bugGNU recutils - Bugs: bug #41604, recfix: leading/trailing spaces

 
 

bug #41604: recfix: leading/trailing spaces

Submitter:  Karl Berry <karl>
Submitted:  Sat 15 Feb 2014 05:19:29 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 15 Feb 2014 05:19:29 PM UTC, original submission:  

consider a record like this:

quantity: 4

Now, if I use a single space between the colon and the number, it is removed from the output of recsel -P quantity.  Good.

But if I use a tab, the tab appears in the output.  That seems wrong.

If I use multiple spaces+tabs (quantity:   4), all of them after the first appear.

Trailing spaces (quantity: 4   ) also appear.

I suggest that recfix check for multiple spaces, especially trailing ones.  It would be nice if it could also fix it, but that looks like new functionality, so I suppose it's fine to leave it for the user.  Not like it's hard.

(This is my last report for the present, yay :)

Karl Berry <karl>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jemarch (Updated the item)
  • -email is unavailable- added by karl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-24 jemarch StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code