mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 16:00:00 +00:00

I had a hunch that the hash would be the problem, because I realized that wmllint usually just looked for '#' to figure out if a line contained a comment, and that this also matched pango color coding. My wmllint backslash/userdata commits used this same re.split match to prevent this false positive. (It won't prevent all unintended matches, e.g. "Guard #4", but I don't think that can be helped.) The problem came, I believe, when the old line interacted with the block ten lines down: elif eligible.count('"') % 2: dostrip = not dostrip The value's closing quote was on the other side of the split.