summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-24 07:56:25 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-24 07:56:25 +0300
commit066bb85e2169daacb52a4b7c71923de9468a1ef3 (patch)
tree5bc1cefd34260066020bda3ee1ac1edf982d586d /src/gmdocument.c
parente8a7ca4fc08d74eb4a1796920fe9268a88fb4c08 (diff)
GmDocument: Fixed build issue
Use the standard `isdigit` from ctype.h.
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 043d3259..b844c0f6 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -1908,9 +1908,9 @@ static void convertMarkdownToGemtext_GmDocument_(iGmDocument *d) {
1908 if (isLastEmpty) { 1908 if (isLastEmpty) {
1909 appendCStr_String(&result, "\n\n"); 1909 appendCStr_String(&result, "\n\n");
1910 } 1910 }
1911 else if (size_Range(&line) >= 2 && isnumber(line.start[0]) && 1911 else if (size_Range(&line) >= 2 && isdigit(line.start[0]) &&
1912 (line.start[1] == '.' || 1912 (line.start[1] == '.' ||
1913 (isnumber(line.start[1]) && line.start[2] == '.'))) { 1913 (isdigit(line.start[1]) && line.start[2] == '.'))) {
1914 appendCStr_String(&result, "\n\n"); 1914 appendCStr_String(&result, "\n\n");
1915 } 1915 }
1916 else if (endsWith_String(&result, " ") || 1916 else if (endsWith_String(&result, " ") ||