make various unit list headings proper headers

This commit is contained in:
Gunter Labes 2008-01-13 11:33:46 +00:00
parent e3090cabce
commit 83d912bab9
3 changed files with 6 additions and 6 deletions

View file

@ -39,7 +39,7 @@ namespace game_config
unsigned lobby_refresh = 2000;
const int gold_carryover_percentage = 80;
const bool gold_carryover_add = false;
const std::string version = VERSION;
const std::string version = "test";
#ifdef SVNREV
const std::string svnrev = SVNREV;
#else

View file

@ -1101,7 +1101,7 @@ std::vector<topic> generate_weapon_special_topics(const bool sort_generated)
std::string id = "weaponspecial_" + s->first;
std::stringstream text;
text << s->second; //description
text << "\n\n" << _("Units having this special attack:") << "\n";
text << "\n\n" << _("<header>text='Units having this special attack:'</header>") << "\n";
std::set<std::string>& units = special_units[s->first];
for (std::set<std::string>::iterator u = units.begin(); u != units.end();u++) {
text << (*u) << "\n";
@ -1169,7 +1169,7 @@ std::vector<topic> generate_ability_topics(const bool sort_generated)
std::string id = "ability_" + a->first;
std::stringstream text;
text << a->second; //description
text << "\n\n" << _("Units having this ability:") << "\n";
text << "\n\n" << _("<header>text='Units having this ability:'</header>") << "\n";
std::set<std::string>& units = ability_units[a->first];
for (std::set<std::string>::iterator u = units.begin(); u != units.end();u++) {
text << (*u) << "\n";
@ -1603,7 +1603,7 @@ std::vector<topic> generate_unit_topics(const bool sort_generated, const std::st
std::stringstream text;
text << race_description;
text << "\n\n" << _("Units of this race:") << "\n";
text << "\n\n" << _("<header>text='Units of this race:'</header>") << "\n";
for (std::set<std::string>::iterator u = race_units.begin(); u != race_units.end();u++) {
text << (*u) << "\n";
}

View file

@ -337,10 +337,10 @@ void gamemap::read(const std::string& data)
// The header shouldn't contain commas, so if the comma is found
// before the header, we hit a \n\n inside or after a map.
// This is no header, so don't parse it as it would be.
VALIDATE(
/* VALIDATE(
!(header_offset == std::string::npos || comma_offset < header_offset),
_("A map without a header is not supported"));
*/
std::string header_str(std::string(data, 0, header_offset + 1));
config header;
::read(header, header_str);