URL:
  <http://gna.org/bugs/?22264>

                 Summary: wmlindent cannot handle more than one closer on the
same line
                 Project: Battle for Wesnoth
            Submitted by: shadowmaster
            Submitted on: Wed 02 Jul 2014 09:35:02 PM CLT
                Category: Bug
                Severity: 3 - Normal
                Priority: 3 - Low
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.13.0-dev, 1.10.7+dev
        Operating System: *

    _______________________________________________________

Details:

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:

{FOO (
    [tag]
    [/tag])} # Two closers here.

[test]
[/test]


... is handled by wmlindent as follows:


{FOO (
    [tag]
    [/tag])} # wmlindent sees only one closer here!

    [test] # Indentation level incremented by the bug above.
    [/test]


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



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 02 Jul 2014 09:35:02 PM CLT  Name: indent-test  Size: 128B   By:
shadowmaster

<http://gna.org/bugs/download.php?file_id=21259>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22264>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to