mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 09:36:34 +00:00
Separate the description and generated description with a newline
This commit is contained in:
parent
7ca8897ff5
commit
07d365b9b5
@ -2220,12 +2220,13 @@ void unit::add_modification(const std::string& mod_type, const config& mod, bool
|
||||
|
||||
const t_string& mod_description = mod["description"];
|
||||
if (!mod_description.empty()) {
|
||||
description = mod_description + " ";
|
||||
description = mod_description;
|
||||
}
|
||||
|
||||
// Punctuation should be translatable: not all languages use Latin punctuation.
|
||||
// (However, there maybe is a better way to do it)
|
||||
if(effects_description.empty() == false && generate_description == true) {
|
||||
if (!mod_description.empty()) description += "\n";
|
||||
for(std::vector<t_string>::const_iterator i = effects_description.begin();
|
||||
i != effects_description.end(); ++i) {
|
||||
if (i->empty()) {
|
||||
@ -2591,4 +2592,3 @@ std::string get_checksum(const unit& u) {
|
||||
|
||||
return wcfg.hash();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user