On Fri, Oct 17, 2008 at 04:49:33PM +0200, Reinhold Kainhofer wrote:
> @[EMAIL PROTECTED] code inside w: c'}} produces a curly quote
> @[EMAIL PROTECTED] w inside code: c'}} produces a straigth quote

This patch fixes it:

@@ -2519,7 +2519,9 @@
              \discretionary{}{}{}}%
             {\_}%
 }
-\def\codex #1{\tclose{#1}\endgroup}
+% \scantokens will get catcodes right if @code occurs in an
+% argument, e.g., in @[EMAIL PROTECTED] or @[EMAIL PROTECTED]
+\def\codex #1{\tclose{\scantokens{#1}}\endgroup}
 
 % An additional complication: the above will allow breaks after, e.g.,
 % each of the four underscores in __typeof__.  This is undesirable in


Best,
Oleg


Reply via email to