help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] texinfo problems


From: Karl Berry
Subject: Re: [help-texinfo] texinfo problems
Date: Mon, 19 Apr 2004 20:44:56 -0400

    (1) Certain commands do not format correctly, for instance
    @samp{text} should produce 'text', but it produces only
    text, i.e. the quotes are missing.

Thanks for the report.  Does this patch help?

*** cmds.c.~1.45.~      Sun Apr 11 11:42:21 2004
--- cmds.c      Mon Apr 19 17:29:06 2004
***************
*** 806,812 ****
        if (STREQ (command, "code"))
          insert_html_tag (arg, "code");
        else
!         insert_html_tag_with_attribute (arg, "span", "class=\"%s\"", command);
      }
    else
      {
--- 806,824 ----
        if (STREQ (command, "code"))
          insert_html_tag (arg, "code");
        else
!         { /* Use <samp> tag in general to get typewriter.  */
!           if (arg == START)
!             { /* If @samp specifically, add quotes a la TeX output.  */
!               if (STREQ (command, "samp")) add_char ('`');
!               add_word ("<samp>");
!             }
!           insert_html_tag_with_attribute (arg, "span", 
"class=\"%s\"",command);
!           if (arg == END)
!             {
!               add_word ("</samp>");
!               if (STREQ (command, "samp")) add_char ('\'');
!             }
!         }
      }
    else
      {




reply via email to

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