summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 4493975..3df8b64 100644
--- a/init.lua
+++ b/init.lua
@@ -278,7 +278,7 @@ doc.entry_builders = {}
-- Inserts line breaks into a single paragraph and collapses all whitespace (including newlines)
-- into spaces
-function linebreaker_single(text)
+local linebreaker_single = function(text)
local linelength = 80
local remain = linelength
local res = {}
@@ -307,7 +307,7 @@ function linebreaker_single(text)
end
-- Inserts automatic line breaks into an entire text and preserves existing newlines
-function linebreaker(text)
+local linebreaker = function(text)
local out = ""
for s in string.gmatch(text, "([^\n]*)\n") do
s = linebreaker_single(s)