| 718 | } |
| 719 | |
| 720 | static void |
| 721 | xo_buf_indent (xo_handle_t *xop, int indent) |
| 722 | { |
| 723 | xo_buffer_t *xbp = &xop->xo_data; |
| 724 | |
| 725 | if (indent <= 0) |
| 726 | indent = xo_indent(xop); |
| 727 | |
| 728 | if (!xo_buf_has_room(xbp, indent)) |
| 729 | return; |
| 730 | |
| 731 | memset(xbp->xb_curp, ' ', indent); |
| 732 | xbp->xb_curp += indent; |
| 733 | } |
| 734 | |
| 735 | static char xo_xml_amp[] = "&"; |
| 736 | static char xo_xml_lt[] = "<"; |
no test coverage detected