From e57650fa019f12864d88dc78f71728934fe6d9c9 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Mon, 25 Mar 2024 18:38:13 +0100 Subject: [PATCH] feat(ast): output code lines --- src/ast/html.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ast/html.c b/src/ast/html.c index 095e57b..514ee1c 100644 --- a/src/ast/html.c +++ b/src/ast/html.c @@ -58,6 +58,10 @@ mrk_err __mrk_ast_to_html(mrk_buf *buf, const char *orig, mrk_ast_node *root) { MRK_RES(__mrk_ast_to_html(buf, orig, child)); MRK_RES(mrk_buf_append_n(buf, "", 5)); break; + case mrk_ast_node_type_code: + MRK_RES(mrk_buf_append_n(buf, "", 6)); + MRK_RES(__mrk_ast_to_html(buf, orig, child)); + MRK_RES(mrk_buf_append_n(buf, "", 7)); case mrk_ast_node_type_none: break; }