From c8a6a33d8b32681335a85747c88e8e5b72d06b1e Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sun, 9 Oct 2016 01:56:46 +0200 Subject: Local functions --- init.lua | 4 ++-- 1 file 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) -- cgit v1.2.3