bugGNU Octave - Bugs: bug #57358, indent is wrong for one - line...

 
 

bug #57358: indent is wrong for one - line constructs

Submitted by:  Lars Kindermann <larskindermann>
Submitted on:  Wed 04 Dec 2019 06:40:14 PM UTC  
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Fixed Assigned to:  John Donoghue <lostbard>
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Mon 06 Jan 2020 04:22:15 PM UTC, comment #3: 

@John: I pushed your patch here https://hg.savannah.gnu.org/hgweb/octave/rev/84d6abff1006.

I re-ordered the regexp just slightly so that the "\r\n\t" appeared in the same order as in other regexp in the file.

Marking as fixed and closig report.

Rik <rik5>
Project Administrator
Sat 04 Jan 2020 02:54:23 PM UTC, comment #2: 

This fixes it for me

(file #48163)

John Donoghue <lostbard>
Project MemberIn charge of this item.
Thu 05 Dec 2019 10:57:19 AM UTC, comment #1: 

Confirmed on Win7

Philip Nienhuis <philipnienhuis>
Project Member
Wed 04 Dec 2019 06:40:14 PM UTC, original submission:  

copy this into the editor

if x
y;
end
if x y; end
if x y; end
if x y; end
if x y; end
if x
y;
end

mark all and click Edit - Format - Indent Code

if x
  y;
end
if x y; end
  if x y; end
    if x y; end
      if x y; end
        if x
          y;
        end

Lars Kindermann <larskindermann>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #48163:  bug57358.patch added by lostbard (2KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by lostbard (Updated the item)
  • -email is unavailable- added by larskindermann (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-06 rik5 StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2020-01-04 lostbard Attached File- => Added bug57358.patch, #48163
        StatusNone => Patch Submitted
        Assigned toNone => lostbard
    2019-12-05 philipnienhuis Operating SystemGNU/Linux => Any

    Back to the top


    Powered by Savane 3.5