summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cweb-latex/src/test/badend.w
blob: 51060a65cfd94f229fcf991800a8132a29a7888c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% $Id: badend.w,v 1.3 1995/08/08 00:14:46 schrod Exp $
%----------------------------------------------------------------------

% tests unknown \end macro
% assumes "h" and "x" user reaction
% note: produces no output!

\makeatletter
\def\end#1{\csname end#1\endcsname\@@checkend{#1}%
  \expandafter\endgroup \if@@endpe \@@doendpe \fi
\relax							% <-- added
  \if@@ignore \global\@@ignorefalse \ignorespaces\fi}
\makeatother

\documentclass{cweb}

\begin{document}

@ Test

\end{document}