]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
kconfig: whitespace removing
authorEGRY Gabor <gaboregry1@t-online.hu>
Fri, 11 Jan 2008 22:55:20 +0000 (23:55 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:38 +0000 (23:14 +0100)
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>
scripts/kconfig/lex.zconf.c_shipped
scripts/kconfig/zconf.l

index a065d5a57c01c131694d6da73ce5591063b34e9b..bed0f4e2d2f7e6632518c8577d39afd74462afdc 100644 (file)
@@ -1275,6 +1275,11 @@ YY_RULE_SETUP
 case 32:
 YY_RULE_SETUP
 {
+               while (zconfleng) {
+                       if ((zconftext[zconfleng-1] != ' ') && (zconftext[zconfleng-1] != '\t'))
+                               break;
+                       zconfleng--;
+               }
                append_string(zconftext, zconfleng);
                if (!first_ts)
                        first_ts = last_ts;
index 187d38ccadd57f489b89cbbf16798cdf5f08ef49..4cea5c85cd0a9297f029d58cf97c4771825f4641 100644 (file)
@@ -217,6 +217,11 @@ n  [A-Za-z0-9_]
                append_string("\n", 1);
        }
        [^ \t\n].* {
+               while (yyleng) {
+                       if ((yytext[yyleng-1] != ' ') && (yytext[yyleng-1] != '\t'))
+                               break;
+                       yyleng--;
+               }
                append_string(yytext, yyleng);
                if (!first_ts)
                        first_ts = last_ts;