From 001738e26e1b841a4042b3597ba28d9c3d04aef6 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 28 Aug 2011 14:30:54 +0200 Subject: fixed solitary substitution bug (reported by Philipp A.) --- mod/scripts/context/lua/mtx-rst.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/scripts/context/lua/mtx-rst.lua') diff --git a/mod/scripts/context/lua/mtx-rst.lua b/mod/scripts/context/lua/mtx-rst.lua index 2b3841a..08782a9 100644 --- a/mod/scripts/context/lua/mtx-rst.lua +++ b/mod/scripts/context/lua/mtx-rst.lua @@ -53,7 +53,7 @@ scripts.rst.output = ea("of") if scripts.rst.input and scripts.rst.output then local expandtab = ea("et") == "true" and true local shiftwidth = ea("sw") - local debug = ea("debug") == "true" and true or false + local debug = ea("debug") == "true" if expandtab then thirddata.rst.expandtab = true end if shiftwdith then thirddata.rst.shiftwidth = tonumber(shiftwidth) end if debug then thirddata.rst_helpers.rst_debug = debug end -- cgit v1.2.3