From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 3a7cbea6; for ; Tue, 10 Feb 2015 03:06:01 -0500 (EST) Date: Tue, 10 Feb 2015 03:06:01 -0500 (EST) Message-Id: <2788587718296589764.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: trim trailing white space, no code change; from Svyatoslav X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- trim trailing white space, no code change; from Svyatoslav Mishyn , Crux Linux Modified Files: -------------- mdocml: TODO cgi.c demandoc.c example.style.css main.c man-cgi.css man_html.c manpage.c mdoc_validate.c style.css Revision Data ------------- Index: man-cgi.css =================================================================== RCS file: /home/cvs/mdocml/mdocml/man-cgi.css,v retrieving revision 1.6 retrieving revision 1.7 diff -Lman-cgi.css -Lman-cgi.css -u -p -r1.6 -r1.7 --- man-cgi.css +++ man-cgi.css @@ -1,10 +1,10 @@ body { font-family: Helvetica, Arial, sans-serif; } -body > div { padding-left: 2em; +body > div { padding-left: 2em; padding-top: 1em; } -body > div#mancgi { padding-left: 0em; +body > div#mancgi { padding-left: 0em; padding-top: 0em; } body > div.results { font-size: smaller; } -#mancgi fieldset { text-align: center; +#mancgi fieldset { text-align: center; border: thin solid silver; border-radius: 1em; font-size: small; } Index: demandoc.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/demandoc.c,v retrieving revision 1.14 retrieving revision 1.15 diff -Ldemandoc.c -Ldemandoc.c -u -p -r1.14 -r1.15 --- demandoc.c +++ demandoc.c @@ -118,7 +118,7 @@ pmandoc(struct mparse *mp, int fd, const line = 1; col = 0; - if (mdoc) + if (mdoc) pmdoc(mdoc_node(mdoc), &line, &col, list); else if (man) pman(man_node(man), &line, &col, list); @@ -168,7 +168,7 @@ again: end = p - 1; while (end > start) - if ('.' == *end || ',' == *end || + if ('.' == *end || ',' == *end || '\'' == *end || '"' == *end || ')' == *end || '!' == *end || '?' == *end || ':' == *end || @@ -200,7 +200,7 @@ again: /* * Print the input word, skipping any special characters. */ - while ('\0' != *p) + while ('\0' != *p) if ('\\' == *p) { p++; esc = mandoc_escape(&p, NULL, NULL); @@ -221,7 +221,7 @@ pline(int line, int *linep, int *col, in /* * Print out as many lines as needed to reach parity with the - * original input. + * original input. */ while (*linep < line) { @@ -241,7 +241,7 @@ pmdoc(const struct mdoc_node *p, int *li pline(p->line, line, col, list); if (MDOC_TEXT == p->type) pstring(p->string, p->pos, col, list); - if (p->child) + if (p->child) pmdoc(p->child, line, col, list); } } @@ -255,7 +255,7 @@ pman(const struct man_node *p, int *line pline(p->line, line, col, list); if (MAN_TEXT == p->type) pstring(p->string, p->pos, col, list); - if (p->child) + if (p->child) pman(p->child, line, col, list); } } Index: example.style.css =================================================================== RCS file: /home/cvs/mdocml/mdocml/example.style.css,v retrieving revision 1.54 retrieving revision 1.55 diff -Lexample.style.css -Lexample.style.css -u -p -r1.54 -r1.55 --- example.style.css +++ example.style.css @@ -6,8 +6,8 @@ * See mdoc(7) and man(7) for macro explanations. */ -div.mandoc { min-width: 102ex; - width: 102ex; +div.mandoc { min-width: 102ex; + width: 102ex; font-family: monospace; } /* This is the outer node of all mandoc -T[x]html documents. */ div.mandoc h1 { margin-bottom: 0ex; font-size: inherit; margin-left: -4ex; } /* Section header (Sh, SH). */ div.mandoc h2 { margin-bottom: 0ex; font-size: inherit; margin-left: -2ex; } /* Sub-section header (Ss, SS). */ @@ -39,7 +39,7 @@ div.mandoc .lit { font-style: normal; div.mandoc i.addr { font-weight: normal; } /* Address (Ad). */ div.mandoc i.arg { font-weight: normal; } /* Command argument (Ar). */ div.mandoc span.author { } /* Author name (An). */ -div.mandoc b.cmd { font-style: normal; } /* Command (Cm). */ +div.mandoc b.cmd { font-style: normal; } /* Command (Cm). */ div.mandoc b.config { font-style: normal; } /* Config statement (Cd). */ div.mandoc span.define { } /* Defines (Dv). */ div.mandoc span.desc { } /* Nd. After em-dash. */ Index: TODO =================================================================== RCS file: /home/cvs/mdocml/mdocml/TODO,v retrieving revision 1.197 retrieving revision 1.198 diff -LTODO -LTODO -u -p -r1.197 -r1.198 --- TODO +++ TODO @@ -60,7 +60,7 @@ are mere guesses, and some may be wrong. - .fc (field control) found by naddy@ in xloadimage(1) loc ** exist *** algo * size * imp * - + - .nr third argument (auto-increment step size, requires \n+) found by bentley@ in sbcl(1) Mon, 9 Dec 2013 18:36:57 -0700 loc * exist * algo * size * imp ** @@ -80,7 +80,7 @@ are mere guesses, and some may be wrong. found by bentley@ in nmh(1) Mon, 23 Apr 2012 13:38:28 -0600 loc ** exist ** algo ** size * imp ** (parser reorg helps a lot) -- .while and .shift +- .while and .shift found by jca@ in ratpoison(1) Sun, 30 Jun 2013 12:01:09 +0200 loc * exist ** algo ** size ** imp ** @@ -465,7 +465,7 @@ are mere guesses, and some may be wrong. loc * exist * algo * size * imp * - trailing whitespace must be ignored even when followed by a font escape, - see for example + see for example makes \fBdig \fR operate in batch mode @@ -539,7 +539,7 @@ are mere guesses, and some may be wrong. How does SQLITE_CONFIG_PAGECACHE actually work? Document it! from kristaps@ Sat, 09 Aug 2014 13:51:36 +0200 -Several areas can be cleaned up to make mandoc even faster. These are +Several areas can be cleaned up to make mandoc even faster. These are - improve hashing mechanism for macros (quite important: performance) @@ -548,7 +548,7 @@ Several areas can be cleaned up to make - the PDF file is HUGE: this can be reduced by using relative offsets - instead of re-initialising the roff predefined-strings set before each - parse, create a read-only version the first time and copy it + parse, create a read-only version the first time and copy it loc * exist ** algo ** size * imp ** ************************************************************************ @@ -564,7 +564,7 @@ Several areas can be cleaned up to make - Find better ways to prevent endless loops in roff(7) macro and string expansion. - + - Finish cleanup of date handling. Decide which formats should be recognized where. Update both mdoc(7) and man(7) documentation. Index: man_html.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/man_html.c,v retrieving revision 1.110 retrieving revision 1.111 diff -Lman_html.c -Lman_html.c -u -p -r1.110 -r1.111 --- man_html.c +++ man_html.c @@ -216,7 +216,7 @@ print_man_node(MAN_ARGS) print_paragraph(h); return; } - if (n->flags & MAN_LINE && (*n->string == ' ' || + if (n->flags & MAN_LINE && (*n->string == ' ' || (n->prev != NULL && mh->fl & MANH_LITERAL && ! (h->flags & HTML_NONEWLINE)))) print_otag(h, TAG_BR, 0, NULL); Index: cgi.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/cgi.c,v retrieving revision 1.103 retrieving revision 1.104 diff -Lcgi.c -Lcgi.c -u -p -r1.103 -r1.104 --- cgi.c +++ cgi.c @@ -58,10 +58,10 @@ static void catman(const struct req *, static void format(const struct req *, const char *); static void html_print(const char *); static void html_putchar(char); -static int http_decode(char *); +static int http_decode(char *); static void http_parse(struct req *, const char *); static void http_print(const char *); -static void http_putchar(char); +static void http_putchar(char); static void http_printquery(const struct req *, const char *); static void pathgen(struct req *); static void pg_error_badrequest(const char *); @@ -186,7 +186,7 @@ http_print(const char *p) static void html_print(const char *p) { - + if (NULL == p) return; while ('\0' != *p) @@ -621,7 +621,7 @@ pg_searchres(const struct req *req, stru for (i = 0; i < sz; i++) { printf("\n" "\n" - "q.manpath, r[i].file); http_printquery(req, "&"); printf("\">"); @@ -701,7 +701,7 @@ catman(const struct req *req, const char while (NULL != (p = fgetln(f, &len))) { bold = italic = 0; for (i = 0; i < (int)len - 1; i++) { - /* + /* * This means that the catpage is out of state. * Ignore it and keep going (although the * catpage is bogus). @@ -742,7 +742,7 @@ catman(const struct req *req, const char continue; } - /* + /* * Handle funny behaviour troff-isms. * These grok'd from the original man2html.c. */ @@ -780,7 +780,7 @@ catman(const struct req *req, const char } /* Bold mode. */ - + if (italic) printf(""); if ( ! bold) @@ -791,9 +791,9 @@ catman(const struct req *req, const char html_putchar(p[i]); } - /* + /* * Clean up the last character. - * We can get to a newline; don't print that. + * We can get to a newline; don't print that. */ if (italic) @@ -891,7 +891,7 @@ pg_show(struct req *req, const char *ful pg_error_badrequest( "You did not specify a page to show."); return; - } + } manpath = mandoc_strndup(fullpath, file - fullpath); file++; @@ -1056,7 +1056,7 @@ main(void) MAN_DIR, strerror(errno)); pg_error_internal(); return(EXIT_FAILURE); - } + } memset(&req, 0, sizeof(struct req)); pathgen(&req); Index: main.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/main.c,v retrieving revision 1.219 retrieving revision 1.220 diff -Lmain.c -Lmain.c -u -p -r1.219 -r1.220 --- main.c +++ main.c @@ -566,7 +566,7 @@ found: " consider running # makewhatis %s\n", progname, name, sec, paths->paths[ipath]); #endif - + *res = mandoc_reallocarray(*res, ++*ressz, sizeof(struct manpage)); page = *res + (*ressz - 1); page->file = file; Index: manpage.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/manpage.c,v retrieving revision 1.9 retrieving revision 1.10 diff -Lmanpage.c -Lmanpage.c -u -p -r1.9 -r1.10 --- manpage.c +++ manpage.c @@ -107,7 +107,7 @@ main(int argc, char *argv[]) return(EXIT_FAILURE); for (i = 0; i < sz; i++) { - printf("%6zu %s: %s\n", + printf("%6zu %s: %s\n", i + 1, res[i].names, res[i].output); free(res[i].names); free(res[i].output); @@ -148,11 +148,11 @@ show: /* NOTREACHED */ usage: fprintf(stderr, "usage: %s [-C conf] " - "[-M paths] " + "[-M paths] " "[-m paths] " "[-S arch] " "[-s section] " - "expr ...\n", + "expr ...\n", progname); return(EXIT_FAILURE); } @@ -174,9 +174,9 @@ show(const char *cmd, const char *file) } else if (pid > 0) { dup2(fds[0], STDIN_FILENO); close(fds[1]); - cmd = NULL != getenv("MANPAGER") ? + cmd = NULL != getenv("MANPAGER") ? getenv("MANPAGER") : - (NULL != getenv("PAGER") ? + (NULL != getenv("PAGER") ? getenv("PAGER") : "more"); execlp(cmd, cmd, (char *)NULL); perror(cmd); Index: style.css =================================================================== RCS file: /home/cvs/mdocml/mdocml/style.css,v retrieving revision 1.30 retrieving revision 1.31 diff -Lstyle.css -Lstyle.css -u -p -r1.30 -r1.31 --- style.css +++ style.css @@ -51,7 +51,7 @@ small { } /* Small: SB, SM. */ i.addr { font-weight: normal; } /* Address (Ad). */ i.arg { font-weight: normal; } /* Command argument (Ar). */ span.author { } /* Author name (An). */ -b.cmd { font-style: normal; } /* Command (Cm). */ +b.cmd { font-style: normal; } /* Command (Cm). */ b.config { font-style: normal; } /* Config statement (Cd). */ span.define { } /* Defines (Dv). */ span.desc { } /* Nd. After em-dash. */ Index: mdoc_validate.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mdoc_validate.c,v retrieving revision 1.276 retrieving revision 1.277 diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.276 -r1.277 --- mdoc_validate.c +++ mdoc_validate.c @@ -1815,7 +1815,7 @@ static void post_sh_see_also(POST_ARGS) { const struct mdoc_node *n; - const char *name, *sec; + const char *name, *sec; const char *lastname, *lastsec, *lastpunct; int cmp; -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv