From 384b72769ee0ae598c4b597486d3dacc91c845b9 Mon Sep 17 00:00:00 2001 From: Victor Kozyakin <57475371+kozyakin@users.noreply.github.com> Date: Mon, 18 Nov 2024 20:46:23 +0300 Subject: [PATCH] Update inject-css.lua --- html/inject-css.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/inject-css.lua b/html/inject-css.lua index 9599b68..bb8fa97 100644 --- a/html/inject-css.lua +++ b/html/inject-css.lua @@ -11,14 +11,14 @@ local function readFile(filename) end local html = readFile(filehtml) -local csstmp = readFile(filecss) -local css = csstmp:gsub('%%', '%%%%') +local css = readFile(filecss) +local css = css:gsub('%%', '%%%%') local spattern = "" local rpattern = "" -local htmltmp = html:gsub(spattern, rpattern) -local injectedHtml = htmltmp:gsub('%%%%','%%') +local injectedHtml = html:gsub(spattern, rpattern) +local injectedHtml = injectedHtml:gsub('%%%%','%%') if injectedHtml then local file = io.open(filehtml, "w")