This patch removes the unnecessary whitespaces from end of help lines of Kconfig files.
Showing the changes to scripts (2 of 2 files). Show all
Unified · Split
| @@ -1275,6 +1275,11 @@ YY_RULE_SETUP · 1274 unmodified lines | ||
| 1275 | 1275 | case 32: |
| 1276 | 1276 | YY_RULE_SETUP |
| 1277 | 1277 | { |
| 1278 | + while (zconfleng) { | |
| 1279 | + if ((zconftext[zconfleng-1] != ' ') && (zconftext[zconfleng-1] != '\t')) | |
| 1280 | + break; | |
| 1281 | + zconfleng--; | |
| 1282 | + } | |
| 1278 | 1283 | append_string(zconftext, zconfleng); |
| 1279 | 1284 | if (!first_ts) |
| 1280 | 1285 | first_ts = last_ts; |
| @@ -217,6 +217,11 @@ n [A-Za-z0-9_] · 216 unmodified lines | ||
| 217 | 217 | append_string("\n", 1); |
| 218 | 218 | } |
| 219 | 219 | [^ \t\n].* { |
| 220 | + while (yyleng) { | |
| 221 | + if ((yytext[yyleng-1] != ' ') && (yytext[yyleng-1] != '\t')) | |
| 222 | + break; | |
| 223 | + yyleng--; | |
| 224 | + } | |
| 220 | 225 | append_string(yytext, yyleng); |
| 221 | 226 | if (!first_ts) |
| 222 | 227 | first_ts = last_ts; |