diff --git a/data/gui/window/help_browser.cfg b/data/gui/window/help_browser.cfg index 77d8b9de8091..1e4807ef4675 100644 --- a/data/gui/window/help_browser.cfg +++ b/data/gui/window/help_browser.cfg @@ -171,6 +171,23 @@ [page_definition] + [row] + grow_factor = 1 + + [column] + border = "left,right" + border_size = 5 + horizontal_grow = true + vertical_grow = true + + [label] + definition = "title" + id = "topic_title" + [/label] + [/column] + + [/row] + [row] grow_factor = 1 diff --git a/src/gui/dialogs/help_browser.cpp b/src/gui/dialogs/help_browser.cpp index 84f981050501..10e3249519b8 100644 --- a/src/gui/dialogs/help_browser.cpp +++ b/src/gui/dialogs/help_browser.cpp @@ -140,10 +140,11 @@ static std::string format_help_text(const config& cfg) } ss << "" << font::escape_text(item.cfg["text"]) << ""; } else if(item.key == "jump") { - // Seems like this creates something invisible? + // This appears to be something akin to tab stops. if(item.cfg["amount"].empty() && item.cfg["to"].empty()) { throw help::parse_error("Jump markup must have either a to or an amount attribute."); } + ss << '\t'; } else if(item.key == "format") { if(item.cfg["text"].empty()) { throw help::parse_error("Header markup must have text attribute."); @@ -211,6 +212,10 @@ void help_browser::on_topic_select(window& window) item["label"] = format_help_text(topic->text.parsed_text()); data.emplace("topic_text", item); + item.clear(); + item["label"] = topic->title; + data.emplace("topic_title", item); + parsed_pages_.emplace(topic_id, topic_pages.get_page_count()); topic_pages.add_page(data);