summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/cweb-latex/src/test/badend.w
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/cweb-latex/src/test/badend.w')
-rw-r--r--Master/texmf-dist/doc/latex/cweb-latex/src/test/badend.w21
1 files changed, 21 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/cweb-latex/src/test/badend.w b/Master/texmf-dist/doc/latex/cweb-latex/src/test/badend.w
new file mode 100644
index 00000000000..51060a65cfd
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/cweb-latex/src/test/badend.w
@@ -0,0 +1,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}