1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

[xml] Show TextNode

ContentNodes are also comments.
This commit is contained in:
Witold Filipczyk 2022-11-10 13:42:06 +01:00
parent f1f18ace45
commit ba861138ca

View File

@ -297,7 +297,7 @@ walk_tree(std::map<int, xmlpp::Element *> *mapa, struct string *buf, void *nod,
xmlpp::Node *node = static_cast<xmlpp::Node *>(nod);
if (!start) {
const auto textNode = dynamic_cast<const xmlpp::ContentNode*>(node);
const auto textNode = dynamic_cast<const xmlpp::TextNode*>(node);
if (textNode) {
add_bytes_to_string(buf, textNode->get_content().c_str(), textNode->get_content().length());