texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/makeinfo html.c,1.16,1.17


From: karl
Subject: texinfo/makeinfo html.c,1.16,1.17
Date: Fri, 19 Mar 2004 19:55:16 +0100

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

Modified Files:
        html.c 
Log Message:
(escape_string): escape ", too, for @image's
alttext among others.


Index: html.c
===================================================================
RCS file: /cvsroot/texinfo/texinfo/makeinfo/html.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** html.c      10 Mar 2004 23:28:43 -0000      1.16
--- html.c      19 Mar 2004 18:55:14 -0000      1.17
***************
*** 338,343 ****
  escape_string (char *string)
  {
!   int i=0, newlen=0;
!   char * newstring;
  
    do
--- 338,343 ----
  escape_string (char *string)
  {
!   char *newstring;
!   int i = 0, newlen = 0;
  
    do
***************
*** 346,349 ****
--- 346,352 ----
        switch (string[i])
          {
+         case '"':
+           newlen += 6;          /* `"' */
+           break;
          case '&':
            newlen += 5;          /* `&' */
***************
*** 367,370 ****
--- 370,377 ----
        switch (string[i])
          {
+         case '"':
+           strcpy (newstring, """);
+           newstring += 6;
+           break;
          case '&':
            strcpy (newstring, "&");



reply via email to

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