diff doc/interpreter/munge-texi.cc @ 4623:985bfd9b7dee

[project @ 2003-11-15 02:49:23 by jwe]
author jwe
date Sat, 15 Nov 2003 02:49:23 +0000
parents 64c444ac1fee
children 4c8a2e4e0717
line wrap: on
line diff
--- a/doc/interpreter/munge-texi.cc
+++ b/doc/interpreter/munge-texi.cc
@@ -145,16 +145,16 @@
 		    {
 		      std::string doc_string = help_text[symbol_name];
 
-		      int i = 0;
-		      while (doc_string[i] == ' ')
-			i++;
+		      int j = 0;
+		      while (doc_string[j] == ' ')
+			j++;
 
-		      if (doc_string.substr (i, 15) == "-*- texinfo -*-")
+		      if (doc_string.substr (j, 15) == "-*- texinfo -*-")
 			{
-			  i += 15;
+			  j += 15;
 
-			  while (isspace (doc_string[i]))
-			    i++;
+			  while (isspace (doc_string[j]))
+			    j++;
 
 			  // Make `see also' references in functions
 			  // possible using @anchor{TAG} (new with
@@ -162,7 +162,7 @@
 
 			  os << "@anchor{doc-" << symbol_name << "}\n";
 
-			  os << doc_string.substr (i);
+			  os << doc_string.substr (j);
 			}
 		      else
 			os << doc_string;