From 8dfefaf0b70d00685bc9b450a00f5015e7849497 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 1 Mar 2016 23:36:06 +0000 Subject: asciilist (28feb16) git-svn-id: svn://tug.org/texlive/trunk@39906 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/asciilist/asciilist.sty | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/asciilist') diff --git a/Master/texmf-dist/tex/latex/asciilist/asciilist.sty b/Master/texmf-dist/tex/latex/asciilist/asciilist.sty index 40a745ed517..e485f0890a9 100644 --- a/Master/texmf-dist/tex/latex/asciilist/asciilist.sty +++ b/Master/texmf-dist/tex/latex/asciilist/asciilist.sty @@ -20,7 +20,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{asciilist} - [2015/11/13 v2.0 Package for quickly creating nested lists] + [2016/02/23 v2.0a Package for quickly creating nested lists] \RequirePackage{etoolbox} \RequirePackage{trimspaces} \newenvironment{AsciiList}[2][\asclst@defaultenvs]{% @@ -34,7 +34,7 @@ \global\asclst@curlevel=0\relax% \let\UP=\asclst@levelsup% \let\UPTO=\asclst@levelsupto% - \asclst@newline% + \asclst@ifnextnewline{}{\asclst@newline}% }{% \asclst@changelistlevel{\asclst@curlevel}{0}% \asclst@restorenewline% @@ -74,6 +74,7 @@ \def\asclst@@do{\par #1}% \else\def\asclst@@do{\space #1}\fi% \fi\asclst@@do}% + \gdef\asclst@ifnextnewline{\@ifnextchar^^M} } \newcount\asclst@curlevel \newcount\asclst@newlevel @@ -136,7 +137,7 @@ \ifstrempty{#1}% {\expandafter\docsvlist\expandafter{\asclst@docdefaultenvs}}% {\docsvlist{#1}}% - \asclst@docnewline% + \asclst@ifnextnewline{}{\asclst@docnewline}% }{% \asclst@changedoclistlevel{}% \asclst@restorenewline% -- cgit v1.2.3