From: Olaf Wintermann Date: Tue, 17 Feb 2026 20:25:02 +0000 (+0100) Subject: fix numerical list serialization X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;ds=inline;p=note.git fix numerical list serialization --- 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); + } }