Skip to content

Commit

Permalink
CampaignWML: Support auto_markup=false to suppress automatic parenthe…
Browse files Browse the repository at this point in the history
  • Loading branch information
jostephd committed Mar 25, 2019
1 parent 306589c commit c44aa31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/dialogs/campaign_difficulty.cpp
Expand Up @@ -135,7 +135,9 @@ void campaign_difficulty::pre_show(window& window)
ss << d["label"];

if(!d["description"].empty()) {
if (!d["old_markup"].to_bool()) {
if (d["auto_markup"].to_bool(true) == false) {
ss << "\n" << d["description"].str();
} else if (!d["old_markup"].to_bool()) {
ss << "\n<small>" << font::span_color(font::GRAY_COLOR) << "(" << d["description"].str() << ")</span></small>";
} else {
ss << "\n<small>" << font::span_color(font::GRAY_COLOR) << d["description"] << "</span></small>";
Expand Down

0 comments on commit c44aa31

Please sign in to comment.