handle showPipes in code only. Fix #609

This commit is contained in:
2025-02-17 11:33:59 -06:00
committed by Celtic Minstrel
parent 090c2faa75
commit a669fe0223
4 changed files with 5 additions and 6 deletions

View File

@@ -65,15 +65,16 @@ bool cTextMsg::parseAttribute(ticpp::Attribute& attr, std::string tagName, std::
else if(val == "left") right_align = false;
else throw xBadVal(tagName, attr.Name(), val, attr.Row(), attr.Column(), fname);
return true;
}else if(attr.Name() == "show-pipes"){
style.showPipes = str_to_bool(attr.Value());
return true;
}
return cControl::parseAttribute(attr, tagName, fname);
}
bool cTextMsg::parseContent(ticpp::Node& content, int n, std::string tagName, std::string fname, std::string& text) {
if(content.Type() == TiXmlNode::TEXT) {
// If a literal '|' is in the XML text, render pipes literally and not as newlines
if(content.Value().find('|') != std::string::npos){
style.showPipes = true;
}
text += dlogStringFilter(content.Value());
return true;
} else if(content.Value() == "br") {