mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 10/10] kconfig: whitespace removing
@ 2008-01-11 22:55 EGRY Gabor
  0 siblings, 0 replies; only message in thread
From: EGRY Gabor @ 2008-01-11 22:55 UTC (permalink / raw)
  To: linux-kbuild, linux-kernel, linux-kernel


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>
---

 kbuild-szilard/scripts/kconfig/lex.zconf.c_shipped |    5 +++++
 kbuild-szilard/scripts/kconfig/zconf.l             |    5 +++++
 2 files changed, 10 insertions(+)

diff -puN scripts/kconfig/zconf.l~kconfig-i18n-18-whitespace-fix scripts/kconfig/zconf.l
--- kbuild/scripts/kconfig/zconf.l~kconfig-i18n-18-whitespace-fix	2008-01-11 22:27:19.000000000 +0100
+++ kbuild-szilard/scripts/kconfig/zconf.l	2008-01-11 22:27:19.000000000 +0100
@@ -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;
diff -puN scripts/kconfig/lex.zconf.c_shipped~kconfig-i18n-18-whitespace-fix scripts/kconfig/lex.zconf.c_shipped
--- kbuild/scripts/kconfig/lex.zconf.c_shipped~kconfig-i18n-18-whitespace-fix	2008-01-11 22:27:19.000000000 +0100
+++ kbuild-szilard/scripts/kconfig/lex.zconf.c_shipped	2008-01-11 22:27:19.000000000 +0100
@@ -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;
_


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-11 22:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-11 22:55 [PATCH 10/10] kconfig: whitespace removing EGRY Gabor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®