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

 
 

bug #41604: recfix: leading/trailing spaces

Submitted by:  Karl Berry <karl>
Submitted on:  Sat 15 Feb 2014 05:19:29 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 24 Feb 2014 09:35:51 PM UTCjemarchStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1