aboutsummaryrefslogtreecommitdiff
path: root/gfmt
diff options
context:
space:
mode:
Diffstat (limited to 'gfmt')
-rwxr-xr-xgfmt9
1 files changed, 9 insertions, 0 deletions
diff --git a/gfmt b/gfmt
new file mode 100755
index 0000000..d38351f
--- /dev/null
+++ b/gfmt
@@ -0,0 +1,9 @@
1#!/bin/sh
2
3# Format text from gemtext format to short lines with double \n
4
5# TODO: remove double spacing from within ```
6
7sed 's/ //' | \
8sed 'a\\' | \
9fold -sw 80

Generated with cgit - Back to sebastiano.tronto.net