summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2011-12-28 14:58:00 +0100
committerPaolo Bonzini <bonzini@gnu.org>2011-12-28 14:58:00 +0100
commit18c0337917db10703c6c5f5265b142971af43e10 (patch)
tree2e8ffe248c37602e4a2c8e0d05231ddd8c52342b
parentf7413d04da7f9f567127c81aef44700935961d0f (diff)
downloadgrep-18c0337917db10703c6c5f5265b142971af43e10.tar.gz
Fix whitespace, indentation and documentation
* src/main.c (parse_grep_colors): Fix indentation. (usage): Mention MS-Windows in help text for -U and -u options.
-rw-r--r--src/main.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index 0f95ee96..46d28738 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1657,8 +1657,9 @@ Context control:\n\
--color[=WHEN],\n\
--colour[=WHEN] use markers to highlight the matching strings;\n\
WHEN is `always', `never', or `auto'\n\
- -U, --binary do not strip CR characters at EOL (MSDOS)\n\
- -u, --unix-byte-offsets report offsets as if CRs were not there (MSDOS)\n\
+ -U, --binary do not strip CR characters at EOL (MSDOS/Windows)\n\
+ -u, --unix-byte-offsets report offsets as if CRs were not there\n\
+ (MSDOS/Windows)\n\
\n"));
printf ("%s", _(after_options));
printf (_("\
@@ -1899,16 +1900,16 @@ parse_grep_colors (void)
if (cap->var)
{
if (val)
- *(cap->var) = val;
+ *(cap->var) = val;
else
- error(0, 0, _("in GREP_COLORS=\"%s\", the \"%s\" capacity "
+ error(0, 0, _("in GREP_COLORS=\"%s\", the \"%s\" capacity "
"needs a value (\"=...\"); skipped"), p, name);
- }
- else if (val)
- error(0, 0, _("in GREP_COLORS=\"%s\", the \"%s\" capacity "
- "is boolean and cannot take a value (\"=%s\"); skipped"),
- p, name, val);
- }
+ }
+ else if (val)
+ error(0, 0, _("in GREP_COLORS=\"%s\", the \"%s\" capacity "
+ "is boolean and cannot take a value (\"=%s\"); skipped"),
+ p, name, val);
+ }
if (cap->fct)
{
const char *err_str = cap->fct();