Loading src/html.h +1 −1 Original line number Diff line number Diff line Loading @@ -142,7 +142,7 @@ namespace libhtmlpp { friend void _copy(libhtmlpp::Element *dest,const libhtmlpp::Element *src); }; void print(Element* el, std::vector<char> &output); void print(Element* el, std::string &output); class HtmlString { public: Loading test/htmlcopytest.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ public: } void printModify(){ std::vector<char> html; std::string html; libhtmlpp::print(&index2,html); std::cout << html.data() << std::endl; } Loading @@ -66,7 +66,7 @@ int main(int arc,char *argv[]){ HtmlCopy cpy(index); std::vector<char> html; std::string html; std::cout << "Orginal html:" << std::endl; libhtmlpp::print(index,html); Loading test/htmlpagetest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ int main(int arc,char *argv[]){ libhtmlpp::HtmlPage page; try{ libhtmlpp::Element *index=page.loadFile(argv[1]); std::vector<char> html; std::string html; libhtmlpp::print(index,html); std::cout << html.data() << std::endl; std::cout << Green << "Test Passed!" << NOCOLOR << std::endl; Loading Loading
src/html.h +1 −1 Original line number Diff line number Diff line Loading @@ -142,7 +142,7 @@ namespace libhtmlpp { friend void _copy(libhtmlpp::Element *dest,const libhtmlpp::Element *src); }; void print(Element* el, std::vector<char> &output); void print(Element* el, std::string &output); class HtmlString { public: Loading
test/htmlcopytest.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ public: } void printModify(){ std::vector<char> html; std::string html; libhtmlpp::print(&index2,html); std::cout << html.data() << std::endl; } Loading @@ -66,7 +66,7 @@ int main(int arc,char *argv[]){ HtmlCopy cpy(index); std::vector<char> html; std::string html; std::cout << "Orginal html:" << std::endl; libhtmlpp::print(index,html); Loading
test/htmlpagetest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ int main(int arc,char *argv[]){ libhtmlpp::HtmlPage page; try{ libhtmlpp::Element *index=page.loadFile(argv[1]); std::vector<char> html; std::string html; libhtmlpp::print(index,html); std::cout << html.data() << std::endl; std::cout << Green << "Test Passed!" << NOCOLOR << std::endl; Loading