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

 
 

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

Submitter:  Lars Kindermann <larskindermann>
Submitted:  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:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group administrator
Sat 04 Jan 2020 02:54:23 PM UTC, comment #2: 

This fixes it for me

(file #48163)

John Donoghue <lostbard>
Group Member
Thu 05 Dec 2019 10:57:19 AM UTC, comment #1: 

Confirmed on Win7

Philip Nienhuis <philipnienhuis>
Group 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)
  •  

    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 group 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.13-758e.
    Corresponding source code