Commit 956cf910 authored by jan.koester's avatar jan.koester
Browse files

change order print

parent 7202911e
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -1293,14 +1293,6 @@ void libhtmlpp::print(Element* el, HtmlString &output,bool formated) {
                goto PRINTNEXTEL;
            }

            if(formated)
                output.append("\r\n");

            if (el->_nextElement) {
                el=el->_nextElement;
                goto PRINTNEXTEL;
            }

            //Container must be always terminated fuck html5
            if(strcmp(((HtmlElement*) el)->getTagname(),"div")==0){
                output.append("</");
@@ -1308,6 +1300,13 @@ void libhtmlpp::print(Element* el, HtmlString &output,bool formated) {
                output.append(">");
            }

            if(formated)
                output.append("\r\n");

            if (el->_nextElement) {
                el=el->_nextElement;
                goto PRINTNEXTEL;
            }
        }break;

        case TextEl :{