summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-22 21:11:36 +0000
committerKarl Berry <karl@freefriends.org>2022-02-22 21:11:36 +0000
commitb58ee08a4c930684f420d4f7cf5fca4b804f7744 (patch)
tree135720e6b67d62f2a76f7bf49f0a2b75ae3c3b3f /Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
parent16e52a84e2d3fced8748b0a0c772c7772aaff173 (diff)
lua-widow-control (22feb22)
git-svn-id: svn://tug.org/texlive/trunk@62144 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty24
1 files changed, 15 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty b/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
index 1be00709bc8..9ef5a76de56 100644
--- a/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
+++ b/Master/texmf-dist/tex/lualatex/lua-widow-control/lua-widow-control.sty
@@ -1,11 +1,11 @@
% lua-widow-control
% https://github.com/gucci-on-fleek/lua-widow-control
% SPDX-License-Identifier: MPL-2.0+
-% SPDX-FileCopyrightText: 2021 Max Chernoff
+% SPDX-FileCopyrightText: 2022 Max Chernoff
\NeedsTeXFormat{LaTeX2e}[2015/01/01] % Formats built after 2015 include \LuaTeX{}Base
\ProvidesPackage{lua-widow-control}%
- [2022/02/15 v1.1.5] %%version %%date
+ [2022/02/22 v1.1.6] %%version %%date
\ifdefined\directlua\else
\PackageError{lua-widow-control}{%
@@ -56,14 +56,20 @@
% We should only reenable \lwc/ at the end if it was already enabled.
\newif\iflwc@should@reenable
-\newcommand{\lwc@patch@pre}{\iflwc%
- \lwc@should@reenabletrue%
- \lwcdisable%
-\fi}
+\newcommand{\lwc@patch@pre}{%
+ \iflwc%
+ \lwc@should@reenabletrue%
+ \lwcdisable%
+ \else%
+ \lwc@should@reenablefalse%
+ \fi%
+}
-\newcommand{\lwc@patch@post}{\iflwc@should@reenable%
- \lwcenable%
-\fi}
+\newcommand{\lwc@patch@post}{%
+ \iflwc@should@reenable%
+ \lwcenable%
+ \fi%
+}
\newcommand{\lwcdisablecmd}[1]{%
\ifdefined#1