From 6cbc9e0a344a5fda3cfd7f9fbd2c3af541f13fd4 Mon Sep 17 00:00:00 2001 From: Leira Hua Date: Mon, 19 Dec 2016 23:54:37 -0800 Subject: [PATCH 1/2] Fixes #995 Documentation rendering problem BSD sed doesn't accept ascii number with '\x', used printf to generate \x8 as @lenormf suggested. --- rc/core/doc.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/doc.kak b/rc/core/doc.kak index 4a4b717e..ff4d58a1 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -9,7 +9,7 @@ def -hidden -params 1..2 _doc-open %{ export MANWIDTH=${kak_window_width} if man "$1" > "${manout}"; then - sed -i 's/.\x8//g' "${manout}" + sed -ie $(printf 's/.\x8//g') "${manout}" printf %s\\n " edit! -scratch '*doc*' From f7b05757edaccdc4b2ed33abcedbdce449bbb021 Mon Sep 17 00:00:00 2001 From: Leira Hua Date: Tue, 20 Dec 2016 02:04:46 -0800 Subject: [PATCH 2/2] Build docs on mac generates a lot .1-r files like doc/manpages/commands.1-r. Ignore for now --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 309c67ab..c13d5d1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.o .*.d *.pyc +*.1-r src/kak doc/kak.1.gz doc/manpages/*.gz