From 74ecfc231bd21179f6c2d2e60c0aab6504f6115f Mon Sep 17 00:00:00 2001 From: Evgeny Date: Wed, 13 Jul 2022 14:37:06 +0300 Subject: [PATCH] add strike function to fmt module --- lib/fmt.lua | 4 ++++ samples/fmt-test.lua | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/fmt.lua b/lib/fmt.lua index e7cfd46..aeaefed 100644 --- a/lib/fmt.lua +++ b/lib/fmt.lua @@ -49,6 +49,10 @@ function fmt.big(str) return ""..str.."" end +function fmt.strike(str) + return ""..str.."" +end + function fmt.space(n) local num = 1 diff --git a/samples/fmt-test.lua b/samples/fmt-test.lua index 2a80ef2..c31b334 100644 --- a/samples/fmt-test.lua +++ b/samples/fmt-test.lua @@ -14,6 +14,7 @@ function on_resume() fmt.bg_colored(fmt.colored("lime background", "#000000"), "#00FF00"), fmt.small("small font"), fmt.big("big font"), + fmt.strike("The crossed out text"), fmt.space().."start with space", fmt.space(4).."start with tab", fmt.escape("not parsed"),