=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/Attic/help.c,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.2 diff -u -p -r1.1.1.1 -r1.1.1.2 --- OpenXM_contrib/gnuplot/Attic/help.c 2000/01/09 17:00:51 1.1.1.1 +++ OpenXM_contrib/gnuplot/Attic/help.c 2000/01/22 14:15:58 1.1.1.2 @@ -1,5 +1,5 @@ #ifndef lint -static char *RCSid = "$Id: help.c,v 1.1.1.1 2000/01/09 17:00:51 maekawa Exp $"; +static char *RCSid = "$Id: help.c,v 1.1.1.2 2000/01/22 14:15:58 maekawa Exp $"; #endif /* GNUPLOT - help.c */ @@ -562,30 +562,28 @@ TBOOLEAN *subtopics; /* (out) are there any subtopics *line = NUL; pos = 0; } - if (pos == PER_LINE) { + if (pos >= PER_LINE) { (void) strcat(line, "\n"); OutLine(line); *line = NUL; pos = 0; } - /* adapted by DvdSchaaf */ - { -#define FIRSTCOL 6 -#define COLLENGTH 15 +#define FIRSTCOL 4 +#define COLLENGTH 18 - if (pos == 0) - spacelen = FIRSTCOL; - for (ispacelen = 0; - ispacelen < spacelen; ispacelen++) - (void) strcat(line, " "); - /* commented out * - (void) strcat(line, "\t"); - */ - (void) strncat(line, start, sublen); - spacelen = COLLENGTH - sublen; - if (spacelen <= 0) - spacelen = 1; + /* adapted by DvdSchaaf */ + if (pos == 0) + spacelen = FIRSTCOL; + for (ispacelen = 0; ispacelen < spacelen; ispacelen++) + (void) strcat(line, " "); + (void) strncat(line, start, sublen); + spacelen = COLLENGTH - sublen; + + while (spacelen <= 0) { + spacelen += COLLENGTH; + pos++; } + pos++; prev = start; }