mirror of
https://github.com/rkd77/elinks.git
synced 2024-10-17 06:24:12 -04:00
[xml] Show TextNode
ContentNodes are also comments.
This commit is contained in:
parent
f1f18ace45
commit
ba861138ca
@ -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);
|
xmlpp::Node *node = static_cast<xmlpp::Node *>(nod);
|
||||||
|
|
||||||
if (!start) {
|
if (!start) {
|
||||||
const auto textNode = dynamic_cast<const xmlpp::ContentNode*>(node);
|
const auto textNode = dynamic_cast<const xmlpp::TextNode*>(node);
|
||||||
|
|
||||||
if (textNode) {
|
if (textNode) {
|
||||||
add_bytes_to_string(buf, textNode->get_content().c_str(), textNode->get_content().length());
|
add_bytes_to_string(buf, textNode->get_content().c_str(), textNode->get_content().length());
|
||||||
|
Loading…
Reference in New Issue
Block a user