Commit 81fd7601 authored by jan.koester's avatar jan.koester
Browse files

all working :-D

parent 9b382891
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1703,7 +1703,7 @@ void libhtmlpp::HtmlElement::setAttribute(const std::string &name, const std::st
    auto checkForbidden = [forbidden](const std::string &input){
        for(size_t i = 0; i<input.length(); ++i){
            for(size_t ii=0; forbidden[ii]; ++ii){
                if(ii>i){
                if(ii<i){
                    return false;
                }
                if(input[i]==forbidden[i]){
+2 −0
Original line number Diff line number Diff line
@@ -22,3 +22,5 @@ target_link_libraries(htmlinserttest htmlpp-static)

add_executable(htmlostreamtest ostream.cpp)
target_link_libraries(htmlostreamtest htmlpp-static)

add_test(htmlostreamtest htmlostreamtest ${CMAKE_SOURCE_DIR}/test/htmlfiles/right.html)