Fossil SCM
Oops
Commit
65397b575eee808a4d40eae083a1bacedba244f2
Parent
2faa1a272bf2b59…
1 file changed
+7
-5
+7
-5
| --- src/diff.c | ||
| +++ src/diff.c | ||
| @@ -171,15 +171,17 @@ | ||
| 171 | 171 | indent = 0; |
| 172 | 172 | if( diffFlags & DIFF_IGNORE_EOLWS ){ |
| 173 | 173 | while( k>0 && fossil_isspace(z[k-1]) ){ k--; } |
| 174 | 174 | } |
| 175 | 175 | if( diffFlags & DIFF_IGNORE_SOLWS ){ |
| 176 | - while( s<k && fossil_isspace(z[s]) ){ s++; } | |
| 177 | - if( z[s]=='\t' ){ | |
| 178 | - indent = ((indent+9)/8)*8; | |
| 179 | - }else if( z[s]==' ' ){ | |
| 180 | - indent++; | |
| 176 | + while( s<k && fossil_isspace(z[s]) ){ | |
| 177 | + if( z[s]=='\t' ){ | |
| 178 | + indent = ((indent+9)/8)*8; | |
| 179 | + }else if( z[s]==' ' ){ | |
| 180 | + indent++; | |
| 181 | + } | |
| 182 | + s++; | |
| 181 | 183 | } |
| 182 | 184 | } |
| 183 | 185 | a[i].z = z+s; |
| 184 | 186 | a[i].indent = s; |
| 185 | 187 | for(h=0, x=s; x<k; x++){ |
| 186 | 188 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -171,15 +171,17 @@ | |
| 171 | indent = 0; |
| 172 | if( diffFlags & DIFF_IGNORE_EOLWS ){ |
| 173 | while( k>0 && fossil_isspace(z[k-1]) ){ k--; } |
| 174 | } |
| 175 | if( diffFlags & DIFF_IGNORE_SOLWS ){ |
| 176 | while( s<k && fossil_isspace(z[s]) ){ s++; } |
| 177 | if( z[s]=='\t' ){ |
| 178 | indent = ((indent+9)/8)*8; |
| 179 | }else if( z[s]==' ' ){ |
| 180 | indent++; |
| 181 | } |
| 182 | } |
| 183 | a[i].z = z+s; |
| 184 | a[i].indent = s; |
| 185 | for(h=0, x=s; x<k; x++){ |
| 186 |
| --- src/diff.c | |
| +++ src/diff.c | |
| @@ -171,15 +171,17 @@ | |
| 171 | indent = 0; |
| 172 | if( diffFlags & DIFF_IGNORE_EOLWS ){ |
| 173 | while( k>0 && fossil_isspace(z[k-1]) ){ k--; } |
| 174 | } |
| 175 | if( diffFlags & DIFF_IGNORE_SOLWS ){ |
| 176 | while( s<k && fossil_isspace(z[s]) ){ |
| 177 | if( z[s]=='\t' ){ |
| 178 | indent = ((indent+9)/8)*8; |
| 179 | }else if( z[s]==' ' ){ |
| 180 | indent++; |
| 181 | } |
| 182 | s++; |
| 183 | } |
| 184 | } |
| 185 | a[i].z = z+s; |
| 186 | a[i].indent = s; |
| 187 | for(h=0, x=s; x<k; x++){ |
| 188 |