# 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 -r 481417a57a2d -r 720a3bd76492 libinterp/interpfcn/help.cc --- a/libinterp/interpfcn/help.cc Thu Oct 04 10:20:59 2012 -0400 +++ b/libinterp/interpfcn/help.cc Thu Oct 04 11:04:34 2012 -0700 @@ -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); } }