From 6050dcdd3669b7102f35a226a6a3ee485c7b703a Mon Sep 17 00:00:00 2001 From: wrmr Date: Fri, 8 Nov 2024 23:23:07 -0500 Subject: use strv_t in plaintext parsing, doc_add_line --- doc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc.c') diff --git a/doc.c b/doc.c index 38b4802..97d8b34 100644 --- a/doc.c +++ b/doc.c @@ -38,8 +38,8 @@ void doc_new_line(struct doc *d) { d->txt.sz += sizeof(struct doc_line); } -void doc_add_line(struct doc *d, const char *s) { - doc_add_text(d, s); +void doc_add_line(struct doc *d, strv_t s) { + doc_add_textn(d, s.s, s.n); doc_new_line(d); } -- cgit 1.4.1-2-gfad0