bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Smart quote replacement in texi2pdf broken with nested @code and @wa


From: Oleg Katsitadze
Subject: Re: Smart quote replacement in texi2pdf broken with nested @code and @warning / @w
Date: Sun, 19 Oct 2008 08:12:06 +0300
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Oct 17, 2008 at 04:49:33PM +0200, Reinhold Kainhofer wrote:
> @address@hidden code inside w: c'}} produces a curly quote
> @address@hidden 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 @address@hidden or @address@hidden
+\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

[Prev in Thread] Current Thread [Next in Thread]