summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@gnu.org>1999-03-16 12:49:21 +0000
committerKarl Berry <karl@gnu.org>1999-03-16 12:49:21 +0000
commite3d0d562dac042d725dc2060f760132f6b549678 (patch)
treefc64a5f986ad18d1e56bca12cf236259de6fecab
parentdb865774df2a08efc17a912c8855f4ac59d426e3 (diff)
downloadgunmake-e3d0d562dac042d725dc2060f760132f6b549678.tar.gz
* texinfo.tex (\imagexxx): reset catcode ^^M in case we're inside
in an example. Report from kama.
-rw-r--r--texinfo.tex25
1 files changed, 14 insertions, 11 deletions
diff --git a/texinfo.tex b/texinfo.tex
index a98d810..848a8c4 100644
--- a/texinfo.tex
+++ b/texinfo.tex
@@ -3,7 +3,7 @@
% Load plain if necessary, i.e., if running under initex.
\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
%
-\def\texinfoversion{1999-03-15.16}%
+\def\texinfoversion{1999-03-15.17}%
%
% Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
% Free Software Foundation, Inc.
@@ -5288,16 +5288,19 @@ width0pt\relax} \fi
% \epsfbox itself resets \epsf?size at each figure.
\setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi
\setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi
- % If the image is by itself, center it.
- \ifvmode
- \nobreak\medskip
- \nobreak
- \centerline{\epsfbox{#1.eps}}%
- \bigbreak
- \else
- % In the middle of a paragraph, no extra space.
- \epsfbox{#1.eps}%
- \fi
+ \begingroup
+ \catcode`\^^M = 5 % in case we're inside an example
+ % If the image is by itself, center it.
+ \ifvmode
+ \nobreak\medskip
+ \nobreak
+ \centerline{\epsfbox{#1.eps}}%
+ \bigbreak
+ \else
+ % In the middle of a paragraph, no extra space.
+ \epsfbox{#1.eps}%
+ \fi
+ \endgroup
}