Commit b59ceba9 authored by jan.koester's avatar jan.koester
Browse files

no space before text

parent 85e1eea4
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -468,6 +468,7 @@ BUILDTREE_STARTLOOP:
            }
        }else if(_Data[ii]!=' '){
            std::vector<char> buf;
            bool empty=true;
            while(ii<_Data.size()){
                switch(_Data[ii]){
                    case HTMLTAG_OPEN: {
@@ -479,13 +480,22 @@ BUILDTREE_STARTLOOP:
                        }
                        goto BUILDTREE_STARTLOOP;
                    };
                    case '\r':
                    case '\r':{
                        ++ii;
                    }break;
                    case '\n':{
                        ++ii;
                    }break;
                    case ' ':{
                        if(!empty)
                            buf.push_back(_Data[ii++]);
                        else
                            ++ii;
                    }break;
                    default:{
                        buf.push_back(_Data[ii++]);
                    };
                        empty=false;
                    }break;
                }
            }
        }