Commit 90172e95 authored by jan.koester's avatar jan.koester
Browse files

ups

parent 73405ee3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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:
+2 −2
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ public:
    }

    void printModify(){
        std::vector<char> html;
        std::string html;
        libhtmlpp::print(&index2,html);
        std::cout << html.data() << std::endl;
    }
@@ -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);
+1 −1
Original line number Diff line number Diff line
@@ -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;