[wesnoth-commits] [wesnoth/wesnoth] b3b4f9: Fix wmlparser3 considers "_" part of attribute value

Lovens Weche noreply at github.com
Mon Feb 11 19:48:04 UTC 2019


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

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

  Log Message:
  -----------
  Fix wmlparser3 considers "_" part of attribute value

The wml parser, when parsing the outside of a string that is
translatable, only assumed “spaces” characters could precede it. If
there are “tabs” characters the code parses the “_” character as an
attribute value.

The solution is to add a stripping code for “tabs” characters.

Code style updated based on recommendations from ProditorMagnus.


  Commit: 7976d69973e972155beaf73e5fb678d23d8c834d
      https://github.com/wesnoth/wesnoth/commit/7976d69973e972155beaf73e5fb678d23d8c834d
  Author: Lovens Weche <lweche159 at gmail.com>
  Date:   2019-02-11 (Mon, 11 Feb 2019)

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

  Log Message:
  -----------
  Merge pull request #3911 from LovCAPONE/bug_3903_fix

Fix wmlparser3 considers "_" part of attribute value


Compare: https://github.com/wesnoth/wesnoth/compare/7a999125ea64...7976d69973e9



More information about the Commits mailing list