Skip to content

Commit

Permalink
Help Browser: removed custom formatting conversion for <bold>, <itali…
Browse files Browse the repository at this point in the history
…c>, and <header>
  • Loading branch information
Vultraz authored and CelticMinstrel committed Oct 24, 2018
1 parent 06fb491 commit 36571ca
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/gui/dialogs/help_browser.cpp
Expand Up @@ -135,21 +135,6 @@ static std::string format_help_text(const config& cfg)
}
// For now, just output a placeholder so we know an image is supposed to be there.
ss << "[img]" << font::escape_text(item.cfg["src"]) << "[/img]";
} else if(item.key == "bold") {
if(item.cfg["text"].empty()) {
throw help::parse_error("Bold markup must have text attribute.");
}
ss << "<b>" << font::escape_text(item.cfg["text"]) << "</b>";
} else if(item.key == "italic") {
if(item.cfg["text"].empty()) {
throw help::parse_error("Italic markup must have text attribute.");
}
ss << "<i>" << font::escape_text(item.cfg["text"]) << "</i>";
} else if(item.key == "header") {
if(item.cfg["text"].empty()) {
throw help::parse_error("Header markup must have text attribute.");
}
ss << "<big>" << font::escape_text(item.cfg["text"]) << "</big>";
} else if(item.key == "jump") {
// This appears to be something akin to tab stops.
if(item.cfg["amount"].empty() && item.cfg["to"].empty()) {
Expand Down

0 comments on commit 36571ca

Please sign in to comment.