[wesnoth-commits] [wesnoth/wesnoth] 3a564f: Fix parser handles textdomain directives incorrect...

Lovens Weche noreply at github.com
Thu Feb 28 09:40:47 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 3a564f7b21d2e6b2e16dd1f467c08967063dd4f9
      https://github.com/wesnoth/wesnoth/commit/3a564f7b21d2e6b2e16dd1f467c08967063dd4f9
  Author: Lovens Weche <lweche159 at gmail.com>
  Date:   2019-02-28 (Thu, 28 Feb 2019)

  Changed paths:
    M data/tools/wesnoth/wmlparser3.py

  Log Message:
  -----------
  Fix parser handles textdomain directives incorrectly (#3954)

The problem is that when parsing #textdomain directives, the parser
expects the directive to be at the start of the line. So if the directive
is preceded by spaces or tabs then it is treated as an attribute.

The solution is to strip all spaces and tabs on the left side of the
parsed line string when checking for #textdomain directive.

Closes #3951





More information about the Commits mailing list