Commit 0eaeaabe authored by jan.koester's avatar jan.koester
Browse files

corrected printing

parent 415b33dd
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -943,14 +943,17 @@ PRINTNEXTEL:
            while(!cpylist->empty()){
                el=cpylist->top();

                output->append("</");
                output->append(((HtmlElement*) el)->getTagname());
                output->append(">");
                el=el->_nextElement;
                cpylist->pop();
                if(el)
                if(el->_nextElement){
                    el=el->_nextElement;
                    goto PRINTNEXTEL;
                }

                output->append("</");
                output->append(((HtmlElement*) el)->getTagname());
                output->append(">");
            }
        }break;

        case TextEl :{
@@ -962,13 +965,15 @@ PRINTNEXTEL:
            while(!cpylist->empty()){
                el=cpylist->top();

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

                output->append("</");
                output->append(((HtmlElement*) el)->getTagname());
                output->append(">");
                el=el->_nextElement;
                cpylist->pop();
                if(el)
                    goto PRINTNEXTEL;

            }
        }break;