Commit 5a26b5a2 authored by jan.koester's avatar jan.koester
Browse files

fixed buildtree

parent 03394b5e
Loading
Loading
Loading
Loading
+1 −12
Changes for src/html.cpp: 1 added line, 12 removed lines.
Original line number Diff line number Diff line
@@ -444,7 +444,6 @@ void libhtmlpp::HtmlPage::loadFile(const char* path){

void libhtmlpp::HtmlElement::_print(HtmlElement* child) {
    for (HtmlElement* cur = child; cur; cur = cur->_nextElement) {
        if (cur->_Child) {
        _Cstr.append("<");
        _Cstr.append(cur->_TagName.c_str());
        for (HtmlElement::HtmlAttributes* curattr = cur->_firstAttr; curattr; curattr = curattr->_nextAttr) {
@@ -453,23 +452,13 @@ void libhtmlpp::HtmlElement::_print(HtmlElement* child) {
            _Cstr.append("\"=");
            _Cstr.append(curattr->_Value.c_str());
        }
        if (cur->_Child) {
            _Cstr.append(">");
            if(cur->_Child)
            _print(cur->_Child);
            _Cstr.append("</");
            _Cstr.append(cur->_TagName.c_str());
            _Cstr.append(">");
            return;
        }
        _Cstr.append("<");
        _Cstr.append(cur->_TagName.c_str());
        for (HtmlElement::HtmlAttributes* curattr = cur->_firstAttr; curattr; curattr = curattr->_nextAttr) {
            _Cstr.append(" ");
            _Cstr.append(curattr->_Key.c_str());
            _Cstr.append("\"=");
            _Cstr.append(curattr->_Value.c_str());
        }
        _Cstr.append(">");
    }
}