]> uap-core.de Git - note.git/commitdiff
fix numerical list serialization
authorOlaf Wintermann <olaf.wintermann@gmail.com>
Tue, 17 Feb 2026 20:25:02 +0000 (21:25 +0100)
committerOlaf Wintermann <olaf.wintermann@gmail.com>
Tue, 17 Feb 2026 20:25:02 +0000 (21:25 +0100)
application/gtk-text.c

index 4be682b1131c27b3bb0fc2454b3a690942af9890..a2450d2e6c9492ad9fdde1057ad8f722b2f0deb7 100644 (file)
@@ -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);
+    }
 }