diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/asciilist/asciilist.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/asciilist/asciilist.sty | 7 |
1 files changed, 4 insertions, 3 deletions
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% |