From 559e0dd94b5818b051e5159d811d385d8acf5935 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 18 Nov 2024 20:25:17 +0100 Subject: [PATCH] added disabling centered level info text if too long --- src/screens.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/screens.c b/src/screens.c index e13a4f9b..5794c2c6 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1087,6 +1087,10 @@ static void addLineOrTextToInfoBuffer(char **buffer, char *header, char *text, b if (strlen(*buffer) > 0) appendStringPrint(buffer, "\n\n"); + // do not use centered text if too long + if (strlen(text) > 80) + centered = FALSE; + // header always centered appendStringPrint(buffer, "# .centered: true\n"); -- 2.34.1