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

                 Summary: Make wmlindent a little smarter
                 Project: Battle for Wesnoth
            Submitted by: shadowmaster
            Submitted on: Wednesday 08/13/2008 at 19:07
                Category: Feature Request
                Severity: 1 - Wish
                Priority: 3 - Low
              Item Group: WML
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.5.2+svn
        Operating System: Any

    _______________________________________________________

Details:

Basically I would like to see wmlindent automatically indent macro-based WML
blocks. Right now it would not indent the code between a {FOREACH some_array
some_subscript} and {NEXT some_subscript} macro inclusions. Neither it would
indent multiline WML code passed as macro parameter of macros which would
accept them, i.e. FULL_HEAL:

This is it now:
++
{FOREACH array k}
{CLEAR_VARIABLE array[k].sub_scalar}
{VARIABLE_OP array[k].other_scalar add 2}
{NEXT k}

{FULL_HEAL (
id=Vermin
side=2
)}
--

As you see, it's pretty hard to read, specially when skimming a file...

This what I wish could be done without having to add # wmlindent: start/stop
ignoring around the code blocks.

++
{FOREACH array k}
    {CLEAR_VARIABLE array[k].sub_scalar}
    {VARIABLE_OP array[k].other_scalar add 2}
{NEXT k}

{FULL_HEAL (
    id=Vermin
    side=2
)}
--





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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