summary refs log tree commit diff
path: root/doc.c
diff options
context:
space:
mode:
authorwrmr2024-11-08 23:23:07 -0500
committerwrmr2024-11-08 23:23:07 -0500
commit6050dcdd3669b7102f35a226a6a3ee485c7b703a (patch)
tree68c710564085c9bdf3fabc4da5663f72e119b72f /doc.c
parent25cde1651b86455707051a842ed66a6df59a006b (diff)
use strv_t in plaintext parsing, doc_add_line
Diffstat (limited to 'doc.c')
-rw-r--r--doc.c4
1 files changed, 2 insertions, 2 deletions
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);
 }