summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-01-19 21:02:02 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-01-19 21:02:02 (GMT)
commit92792d3adc9011f35467341eb535ed3580ddb901 (patch)
treea3abc0d2a3da492a873fd59a140684da6a15924e /src/docparser.cpp
parentf781e6dbbaa51edbdbe9b5906be9962968d0ee68 (diff)
downloadDoxygen-92792d3adc9011f35467341eb535ed3580ddb901.zip
Doxygen-92792d3adc9011f35467341eb535ed3580ddb901.tar.gz
Doxygen-92792d3adc9011f35467341eb535ed3580ddb901.tar.bz2
Release-1.3-rc2-20030119
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp9
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();