diff options
author | Norbert Preining <norbert@preining.info> | 2022-02-23 03:01:16 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-02-23 03:01:16 +0000 |
commit | d529109bf475e3f1e220ce0e980e104b1a7e3c6b (patch) | |
tree | af59aa7f9553f1cb355b3d98042ffa26a2e61184 /macros/luatex/generic/lua-widow-control/lua-widow-control.sty | |
parent | fb013a78d9e3aef2ecf58702d4adcec8d9ab6b28 (diff) |
CTAN sync 202202230301
Diffstat (limited to 'macros/luatex/generic/lua-widow-control/lua-widow-control.sty')
-rw-r--r-- | macros/luatex/generic/lua-widow-control/lua-widow-control.sty | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/macros/luatex/generic/lua-widow-control/lua-widow-control.sty b/macros/luatex/generic/lua-widow-control/lua-widow-control.sty index 1be00709bc..9ef5a76de5 100644 --- a/macros/luatex/generic/lua-widow-control/lua-widow-control.sty +++ b/macros/luatex/generic/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 |