Skip to content

Commit f7a4b4c

Browse files
EGRY Gaborsravnborg
authored andcommitted
kconfig: whitespace removing
This patch removes the unnecessary whitespaces from end of help lines of Kconfig files. Signed-off-by: Egry Gabor <gaboregry1@t-online.hu> Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Roman Zippel <zippel@linux-m68k.org>
1 parent 1020026 commit f7a4b4c

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎scripts/kconfig/lex.zconf.c_shipped‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1275,6 +1275,11 @@ YY_RULE_SETUP
12751275
case 32:
12761276
YY_RULE_SETUP
12771277
{
1278+
while (zconfleng) {
1279+
if ((zconftext[zconfleng-1] != ' ') && (zconftext[zconfleng-1] != '\t'))
1280+
break;
1281+
zconfleng--;
1282+
}
12781283
append_string(zconftext, zconfleng);
12791284
if (!first_ts)
12801285
first_ts = last_ts;

‎scripts/kconfig/zconf.l‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ n [A-Za-z0-9_]
217217
append_string("\n", 1);
218218
}
219219
[^ \t\n].* {
220+
while (yyleng) {
221+
if ((yytext[yyleng-1] != ' ') && (yytext[yyleng-1] != '\t'))
222+
break;
223+
yyleng--;
224+
}
220225
append_string(yytext, yyleng);
221226
if (!first_ts)
222227
first_ts = last_ts;

0 commit comments

Comments
 (0)