Mercurial > hg > octave-lojdl
changeset 15489:720a3bd76492
Backout changeset afc002de3ade until final built-in docstrings file format chosen.
* libinterp/interpfcn/help.cc (install_built_in_docstrings): Restore stripping
of Texinfo comment which is first line of built-in DOCSTRINGS entry.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 04 Oct 2012 11:04:34 -0700 |
parents | 481417a57a2d |
children | dbc6b6b18286 |
files | libinterp/interpfcn/help.cc |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interpfcn/help.cc +++ b/libinterp/interpfcn/help.cc @@ -986,6 +986,16 @@ if (fp) { tmp = tmp.substr (pos+1); + + // Strip @c FILENAME which is part of current DOCSTRINGS + // syntax. This may disappear if a specific format for + // docstring files is developed. + while (tmp.length () > 2 && tmp[0] == '@' && tmp[1] == 'c') + { + pos = tmp.find ('\n'); + tmp = tmp.substr (pos+1); + } + fp->document (tmp); } }