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 Jul 3 01:35:02 2014  
Category: BugSeverity: 3 - Normal
Priority: 3 - LowItem Group: WML Tools
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 Jul 3 01:35:02 2014, 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):

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.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Jul 26 05:45:38 2015shadowmasterItem GroupWML=>WML Tools
    Thu Jul 3 01:35:02 2014shadowmasterAttached File-=>Added indent-test, #21259
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup