Skip to content

Commit 1f3ae6f

Browse files
committed
Fixes #9: Issue with nested indent lines.
1 parent 46ee932 commit 1f3ae6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

algpseudocodex.sty

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%% algpseudocodex.sty
2-
%% Copyright 2017, 2020-2021 Christian Matt
2+
%% Copyright 2017, 2020-2022 Christian Matt
33
%
44
% This work may be distributed and/or modified under the
55
% conditions of the LaTeX Project Public License, either version 1.3
@@ -20,7 +20,7 @@
2020
% Based on Szasz Janos' algpseudocode.sty
2121

2222
\NeedsTeXFormat{LaTeX2e}
23-
\ProvidesPackage{algpseudocodex}[2021-12-05 v1.0.1 pseudocode typesetting]
23+
\ProvidesPackage{algpseudocodex}[2022-10-07 v1.0.2 pseudocode typesetting]
2424
\RequirePackage{kvoptions}
2525
\RequirePackage{algorithmicx}
2626
\RequirePackage{etoolbox}
@@ -465,7 +465,7 @@
465465
\@tikzmarkNow{algpx@indentEnd-\FSTop{algpx@indentStack}}%
466466
\tikz[overlay,remember picture]{%
467467
\pgfextractx{\algpx@indStartX}{\pgfpointanchor{algpx@indentStart-\FSTop{algpx@indentStack}}{center}}%
468-
\ifbool{algpx@indJustEnded}{%
468+
\ifboolexpr{bool{algpx@indJustEnded} and test{\ifstrequal{#1}{0}}}{%
469469
% use same coordinates as for previous end
470470
\pgfextracty{\algpx@indEndY}{\pgfpointanchor{algpx@indentEnd-\thealgpx@justUsedIndentCount}{center}}%
471471
\draw[algpxIndentLine] ($(algpx@indentStart-\FSTop{algpx@indentStack})+(0.12em,-0.8ex)$) -- ($(\algpx@indStartX,\algpx@indEndY)+(0.12em,0ex)$) -- +(0.5em,0);%

0 commit comments

Comments
 (0)