** Print a markdown or table-style row separator using ascii-art */
| 17406 | ** Print a markdown or table-style row separator using ascii-art |
| 17407 | */ |
| 17408 | static void print_row_separator( |
| 17409 | ShellState *p, |
| 17410 | int nArg, |
| 17411 | const char *zSep |
| 17412 | ){ |
| 17413 | int i; |
| 17414 | if( nArg>0 ){ |
| 17415 | fputs(zSep, p->out); |
| 17416 | print_dashes(p->out, p->actualWidth[0]+2); |
| 17417 | for(i=1; i<nArg; i++){ |
| 17418 | fputs(zSep, p->out); |
| 17419 | print_dashes(p->out, p->actualWidth[i]+2); |
| 17420 | } |
| 17421 | fputs(zSep, p->out); |
| 17422 | } |
| 17423 | fputs("\n", p->out); |
| 17424 | } |
| 17425 | |
| 17426 | /* |
| 17427 | ** This is the callback routine that the shell |
no test coverage detected