Avoid linebreak in title text of help pages
* doesn't clutter unit help tree when a unit variation is displayed * when displaying a unit variation in the help, it displays the links below the unit image at the same line as when displaying the base unit patch from #6011
This commit is contained in:
parent
c143dfdfeb
commit
dd40711d79
1 changed files with 1 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ void generate_unit_sections(const config* /*help_cfg*/, section& sec, int /*leve
|
|||
for (const std::string &variation_id : type.variations()) {
|
||||
// TODO: Do we apply encountered stuff to variations?
|
||||
const unit_type &var_type = type.get_variation(variation_id);
|
||||
const std::string topic_name = var_type.type_name() + "\n" + var_type.variation_name();
|
||||
const std::string topic_name = var_type.variation_name();
|
||||
const std::string var_ref = hidden_symbol(var_type.hide_help()) + variation_prefix + var_type.id() + "_" + variation_id;
|
||||
|
||||
topic var_topic(topic_name, var_ref, "");
|
||||
|
|
Loading…
Add table
Reference in a new issue