From 2812e9a904f8367fdb482c09486ca502246e1ed3 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 12 Jan 2024 23:04:59 +0300 Subject: fixed piping to Groff * nroff does not always support `-K` --- openrussian.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openrussian.lua b/openrussian.lua index 6ee5628..9c1df4b 100755 --- a/openrussian.lua +++ b/openrussian.lua @@ -605,7 +605,7 @@ if use_stdout then else local size_stream = io.popen("stty size") local columns = size_stream and size_stream:read("*a"):match("%d+ (%d+)") or 80 - out_stream = io.popen("nroff -Kutf8 -Tutf8 -t -man -rLL="..columns.."n -rLT="..columns.."n | less -r", "w") + out_stream = io.popen("groff -Kutf8 -Tutf8 -t -man -rLL="..columns.."n -rLT="..columns.."n | less -r", "w") end assert(out_stream) -- cgit v1.2.3