From d973b677ab96af6a17d12f194b6ea80076e29ede Mon Sep 17 00:00:00 2001 From: Olaf Wintermann Date: Tue, 17 Feb 2026 21:25:02 +0100 Subject: [PATCH] fix numerical list serialization --- application/gtk-text.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/application/gtk-text.c b/application/gtk-text.c index 4be682b..a2450d2 100644 --- a/application/gtk-text.c +++ b/application/gtk-text.c @@ -1416,7 +1416,13 @@ static void destroy_bulletlist_elm(GtkWidget *widget, gpointer data) { #endif static void md_serialize_list(EmbeddedWidget *em, CxBuffer *out) { - cxBufferPutString(out, " - "); + if(em->intdata1 == 1) { + cxBufferPutString(out, " - "); + } else { + char buf[32]; + snprintf(buf, 32, " %d. ", em->intdata2+1); + cxBufferPutString(out, buf); + } } -- 2.47.3