# HG changeset patch # User Rik # Date 1349373874 25200 # Node ID 720a3bd764927c38abeb5598dd30f8dcfb87e0b5 # Parent 481417a57a2db269c775f1d1fb9a922655d7166d 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. diff --git a/libinterp/interpfcn/help.cc b/libinterp/interpfcn/help.cc --- 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); } }