Skip to content

Commit

Permalink
Fix misplaced </span> tag
Browse files Browse the repository at this point in the history
  • Loading branch information
sevu authored and Vultraz committed May 2, 2018
1 parent 0fc43b0 commit 10af777
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/units/attack_type.cpp
Expand Up @@ -416,7 +416,7 @@ bool attack_type::describe_modification(const config& cfg,std::string* descripti

if(!set_movement.empty()) {
desc.emplace_back(VNGETTEXT(
// TRANSLATORS: Current value for WML code set_movement, documented in https://wiki.wesnoth.org/EffectWML
// TRANSLATORS: Current value for WML code set_movement_used, documented in https://wiki.wesnoth.org/EffectWML
"$number movement point",
"$number movement points",
std::stoi(set_movement),
Expand All @@ -425,9 +425,9 @@ bool attack_type::describe_modification(const config& cfg,std::string* descripti

if(!increase_movement.empty()) {
desc.emplace_back(VNGETTEXT(
// TRANSLATORS: Current value for WML code increase_movement, documented in https://wiki.wesnoth.org/EffectWML
"<span color=\"$color\">$number_or_percent movement</span> point",
"<span color=\"$color\">$number_or_percent movement</span> points",
// TRANSLATORS: Current value for WML code increase_movement_used, documented in https://wiki.wesnoth.org/EffectWML
"<span color=\"$color\">$number_or_percent</span> movement point",
"<span color=\"$color\">$number_or_percent</span> movement points",
std::stoi(increase_movement),
{{"number_or_percent", utils::print_modifier(increase_movement)}, {"color", increase_movement[0] == '-' ? "red" : "green"}}));
}
Expand Down

0 comments on commit 10af777

Please sign in to comment.