commit 04ea68c362646efcbe743c614664729bd295be5a
Author: Laslo Hunhold <[email protected]>
Date: Thu Dec 23 10:37:42 2021 +0100
libgrapheme - Proper newlines in code
Signed-off-by: Laslo Hunhold <[email protected]>
diff --git a/libs.suckless.org/libgrapheme/index.md
b/libs.suckless.org/libgrapheme/index.md
index fbc28ecf..e0b5a76b 100644
--- a/libs.suckless.org/libgrapheme/index.md
+++ b/libs.suckless.org/libgrapheme/index.md
@@ -67,7 +67,7 @@ into its user-perceived characters:
#include <grapheme.h>
#include <stdint.h>
#include <stdio.h>
-
+
int
main(void)
{
@@ -77,14 +77,14 @@ into its user-perceived characters:
"\x9F\x87\xBA\xF0\x9F\x87\xB8 \xE0\xA4\xA8\xE0"
"\xA5\x80 \xE0\xAE\xA8\xE0\xAE\xBF!";
size_t ret, off;
-
+
printf("Input: \"%s\"
", s);
-
+
for (off = 0; s[off] != ' ret =
grapheme_next_character_break(s + off, SIZE_MAX);
printf("%2zu bytes | %.*s
", ret, (int)ret, s + off, ret);
}
-
+
return 0;
}