Loading src/html.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -1173,15 +1173,17 @@ PRINTNEXTEL: output.append("\""); } } if(((HtmlElement*) el)->_childElement || el->_nextElement ){ output.append(">"); }else{ output.append(" />"); } if (((HtmlElement*) el)->_childElement) { cpylist.push(el); el=((HtmlElement*) el)->_childElement; goto PRINTNEXTEL; }else{ output.append("</"); output.append(((HtmlElement*) el)->getTagname()); output.append(">"); } if (el->_nextElement) { Loading test/htmlcopytest.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -38,11 +38,11 @@ class HtmlCopy{ public: HtmlCopy(libhtmlpp::Element *index){ index2=index; // libhtmlpp::HtmlElement el("span"); // el.setAttribute("id","txt3"); // libhtmlpp::HtmlElement *body=index2.getElementbyTag("body"); // if(body) // body->appendChild(&el); libhtmlpp::HtmlElement el("span"); el.setAttribute("id","txt3"); libhtmlpp::HtmlElement *body=index2.getElementbyTag("body"); if(body) body->appendChild(&el); } void printModify(){ Loading Loading
src/html.cpp +7 −5 Original line number Diff line number Diff line Loading @@ -1173,15 +1173,17 @@ PRINTNEXTEL: output.append("\""); } } if(((HtmlElement*) el)->_childElement || el->_nextElement ){ output.append(">"); }else{ output.append(" />"); } if (((HtmlElement*) el)->_childElement) { cpylist.push(el); el=((HtmlElement*) el)->_childElement; goto PRINTNEXTEL; }else{ output.append("</"); output.append(((HtmlElement*) el)->getTagname()); output.append(">"); } if (el->_nextElement) { Loading
test/htmlcopytest.cpp +5 −5 Original line number Diff line number Diff line Loading @@ -38,11 +38,11 @@ class HtmlCopy{ public: HtmlCopy(libhtmlpp::Element *index){ index2=index; // libhtmlpp::HtmlElement el("span"); // el.setAttribute("id","txt3"); // libhtmlpp::HtmlElement *body=index2.getElementbyTag("body"); // if(body) // body->appendChild(&el); libhtmlpp::HtmlElement el("span"); el.setAttribute("id","txt3"); libhtmlpp::HtmlElement *body=index2.getElementbyTag("body"); if(body) body->appendChild(&el); } void printModify(){ Loading