texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/makeinfo cmds.c,1.11,1.12


From: dirt
Subject: texinfo/makeinfo cmds.c,1.11,1.12
Date: Fri, 2 Jan 2004 12:25:05 +0100

Update of /cvsroot/texinfo/texinfo/makeinfo
In directory sheep:/tmp/cvs-serv31985/makeinfo

Modified Files:
        cmds.c 
Log Message:
2004-01-02  Alper Ersoy  <address@hidden>

        * makeinfo/cmds.c (cm_code): for HTML, use span for @command, @env,
        @file, @option and @samp, and insert command name as class attribute.



Index: cmds.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/cmds.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** cmds.c      2003/12/30 15:26:09     1.11
--- cmds.c      2004/01/02 11:25:02     1.12
***************
*** 821,842 ****
        xml_insert_element (CODE, arg);
      }
!   else
      {
!       extern int printing_index;
! 
!       if (arg == START)
!         {
!           if (html)
!             insert_html_tag (arg, "code");
!           else if (!printing_index)
!             add_char ('`');
!         }
!       else if (html)
          insert_html_tag (arg, "code");
        else
          {
!           if (!printing_index)
!             add_meta_char ('\'');
          }
      }
  }
--- 821,847 ----
        xml_insert_element (CODE, arg);
      }
!   else if (html)
      {
!       if (STREQ (command, "code"))
          insert_html_tag (arg, "code");
        else
+         insert_html_tag (arg, "span");
+ 
+       /* We overwrite the closing '>' with the class attribute.  */
+       if (arg == START)
          {
!           output_paragraph_offset--;
!           add_word_args (" class=\"%s\">", command);
          }
+     }
+   else
+     {
+       extern int printing_index;
+ 
+       if (!printing_index)
+         if (arg == START)
+           add_char ('`');
+         else
+           add_meta_char ('\'');
      }
  }



reply via email to

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