summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/asciilist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-03-01 23:36:06 +0000
committerKarl Berry <karl@freefriends.org>2016-03-01 23:36:06 +0000
commit8dfefaf0b70d00685bc9b450a00f5015e7849497 (patch)
tree82ab4c3970b02fe03a975ed08e9e54fe1271c49b /Master/texmf-dist/tex/latex/asciilist
parente7dd41895d83a8493af36e8684ff8371abb0c2c0 (diff)
asciilist (28feb16)
git-svn-id: svn://tug.org/texlive/trunk@39906 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/asciilist')
-rw-r--r--Master/texmf-dist/tex/latex/asciilist/asciilist.sty7
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%