* \H and \html -- toggle HTML formatting */
| 1577 | * \H and \html -- toggle HTML formatting |
| 1578 | */ |
| 1579 | static backslashResult |
| 1580 | exec_command_html(PsqlScanState scan_state, bool active_branch) |
| 1581 | { |
| 1582 | bool success = true; |
| 1583 | |
| 1584 | if (active_branch) |
| 1585 | { |
| 1586 | if (pset.popt.topt.format != PRINT_HTML) |
| 1587 | success = do_pset("format", "html", &pset.popt, pset.quiet); |
| 1588 | else |
| 1589 | success = do_pset("format", "aligned", &pset.popt, pset.quiet); |
| 1590 | } |
| 1591 | |
| 1592 | return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR; |
| 1593 | } |
| 1594 | |
| 1595 | /* |
| 1596 | * \i and \ir -- include a file |
no test coverage detected