bugGNU nano - Bugs: bug #53932, [Request] justification should...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53932: [Request] justification should allow the first line to have *less* indentation than the rest

Submitter:  Benno Schulenberg <bens>
Submitted:  Thu 17 May 2018 06:10:51 PM UTC
   
 
Severity:  1 - Wish Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 02 Jun 2018 10:25:13 AM UTC, comment #3: 

Released in 2.9.8.

Benno Schulenberg <bens>
Group administrator
Tue 29 May 2018 07:13:56 AM UTC, comment #2: 

Fixed in git, commit 432a7d77.

Benno Schulenberg <bens>
Group administrator
Mon 21 May 2018 08:58:10 AM UTC, comment #1: 

First iteration of a patch is attached.

(file #44187)

Benno Schulenberg <bens>
Group administrator
Thu 17 May 2018 06:10:51 PM UTC, original submission:  

When you use the "nice editor" (ne) to justify the paragraphs in nano's NEWS file (using ne's M-P command), then it will beautifully do so: it will recognize that the first line of each paragraph has zero indent, and all the subsequent lines start with 13 spaces: if it needs to make the first line shorter, it will not (like Pico and nano) put the pushed-over word(s) on a line by itself with zero indent, but will correctly prefix it to the second line (after the 13-space indent) and rewrap the rest.

Even when the paragraphs are not separated by blank lines, ne will correctly recognize where a paragraph begins and ends.  (Except when you invoke M-P when not on the first line of a paragraph, then it will not consider a line with a different indentation as the first line.)

I think nano should become equally smart: when the cursor is on a line and ^J is invoked, this line may have any identation, but all the subsequent lines should have a constant indentation but it may differ from the first line.

Benno Schulenberg <bens>
Group administrator

 

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-02 bens Open/ClosedOpen Closed
    2018-05-29 bens StatusIn Progress Fixed
    2018-05-21 bens Attached File- Added 0002-justification-find-the-beginning-of-a-paragraph-in-a.patch, #44187
        StatusNone In Progress
    2018-05-21 bens Assigned toNone bens

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code