comparison doc/interpreter/munge-texi.cc @ 9891:1506a17832c9

doc building fixes for class methods
author John W. Eaton <jwe@octave.org>
date Mon, 30 Nov 2009 14:32:10 -0500
parents 0d4613a736e9
children 8d20fb66a0dc
comparison
equal deleted inserted replaced
9890:483c4b09b788 9891:1506a17832c9
125 if (first) 125 if (first)
126 first = false; 126 first = false;
127 else 127 else
128 doc += ", "; 128 doc += ", ";
129 129
130 if (function_name[0] == '@')
131 function_name = "@" + function_name;
132
130 doc += "@ref{doc-" + function_name + ",," 133 doc += "@ref{doc-" + function_name + ",,"
131 + function_name + "}"; 134 + function_name + "}";
132 135
133 // test for end of @seealso 136 // test for end of @seealso
134 if (c == '}') 137 if (c == '}')
274 277
275 // Make `see also' references in functions 278 // Make `see also' references in functions
276 // possible using @anchor{TAG} (new with 279 // possible using @anchor{TAG} (new with
277 // Texinfo 4.0). 280 // Texinfo 4.0).
278 281
282 if (symbol_name[0] == '@')
283 symbol_name = "@" + symbol_name;
284
279 os << "@anchor{doc-" << symbol_name << "}\n"; 285 os << "@anchor{doc-" << symbol_name << "}\n";
280 286
281 os << doc_string.substr (j); 287 os << doc_string.substr (j);
282 } 288 }
283 else 289 else