From b58ee08a4c930684f420d4f7cf5fca4b804f7744 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 22 Feb 2022 21:11:36 +0000 Subject: lua-widow-control (22feb22) git-svn-id: svn://tug.org/texlive/trunk@62144 c570f23f-e606-0410-a88d-b1316a301751 --- .../lua-widow-control/lua-widow-control.sty | 24 ++++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'Master/texmf-dist/tex/lualatex') 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 -- cgit v1.2.3