bugBattle for Wesnoth - Bugs: bug #22264, wmlindent cannot handle more than...

 
 
Show feedback again

bug #22264: wmlindent cannot handle more than one closer on the same line

Submitted by:  Ignacio R. Morelle <shadowmaster>
Submitted on:  Thu 03 Jul 2014 01:35:02 AM UTC  
 
Category: BugSeverity: 3 - Normal
Priority: 3 - LowItem Group: WML
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: 1.13.0-dev, 1.10.7+devOperating System: *

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 03 Jul 2014 01:35:02 AM UTC, original submission:

When provided with a file containing more than one closer string on the same line (such as "[/foo])}" instead of "[/foo]" and ")" on separate lines), wmlindent will decrement the indentation level only once instead of multiple times for that line as one would expect, resulting in it increasing the indentation for everything that follows.

For example:

... is handled by wmlindent as follows:

I've attached a sample input file where the results of this oversight become obvious from line 5 onwards in the output.

Ignacio R. Morelle <shadowmaster>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #21259:  indent-test added by shadowmaster (128B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by shadowmaster (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 Jul 2014 01:35:02 AM UTCshadowmasterAttached File-=>Added indent-test, #21259
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup