diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-01-19 21:02:02 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-01-19 21:02:02 (GMT) |
commit | afb84237b8c3024f2f35346ba3ee4532e1a8b507 (patch) | |
tree | a3abc0d2a3da492a873fd59a140684da6a15924e /src/docparser.cpp | |
parent | be32faf9e70cecf7583687c1ce875071abd99005 (diff) | |
download | Doxygen-afb84237b8c3024f2f35346ba3ee4532e1a8b507.zip Doxygen-afb84237b8c3024f2f35346ba3ee4532e1a8b507.tar.gz Doxygen-afb84237b8c3024f2f35346ba3ee4532e1a8b507.tar.bz2 |
Release-1.3-rc2-20030119
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r-- | src/docparser.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp index bc5d872..2cfa394 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -3,7 +3,7 @@ * * * - * Copyright (C) 1997-2002 by Dimitri van Heesch. + * Copyright (C) 1997-2003 by Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby @@ -2161,11 +2161,15 @@ int DocIndexEntry::parse() warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: expected whitespace after \\addindex command"); goto endindexentry; } + doctokenizerYYsetStateTitle(); m_entry=""; - while ((tok=doctokenizerYYlex()) && tok!=TK_WHITESPACE && tok!=TK_NEWPARA) + while ((tok=doctokenizerYYlex())) { switch (tok) { + case TK_WHITESPACE: + m_entry+=" "; + break; case TK_WORD: case TK_LNKWORD: m_entry+=g_token->name; @@ -2216,6 +2220,7 @@ int DocIndexEntry::parse() } } if (tok!=TK_WHITESPACE) retval=tok; + doctokenizerYYsetStatePara(); endindexentry: DBG(("DocIndexEntry::parse() end retval=%x\n",retval)); DocNode *n=g_nodeStack.pop(); |