summaryrefslogtreecommitdiffstats
path: root/src/docparser.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-14 19:55:59 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-05-14 19:55:59 (GMT)
commit64200b5e975b19f38f9a68569b98c6f53e6fe4d9 (patch)
treed211455e0cef95445694e7630c63dd0e90d3f3a5 /src/docparser.cpp
parenta9f41d99f3651cd66850e9020bc3af7cb559306e (diff)
downloadDoxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.zip
Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.gz
Doxygen-64200b5e975b19f38f9a68569b98c6f53e6fe4d9.tar.bz2
Release-1.3-20030514
Diffstat (limited to 'src/docparser.cpp')
-rw-r--r--src/docparser.cpp40
1 files changed, 21 insertions, 19 deletions
diff --git a/src/docparser.cpp b/src/docparser.cpp
index d4df2df..e84bf96 100644
--- a/src/docparser.cpp
+++ b/src/docparser.cpp
@@ -1923,38 +1923,40 @@ void DocImage::parse()
{
case TK_COMMAND:
warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Illegal command %s as part of a \\image",
- g_token->name.data());
+ g_token->name.data());
break;
case TK_SYMBOL:
- warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unsupported symbol %s found",
- g_token->name.data());
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unsupported symbol %s found",
+ g_token->name.data());
break;
default:
- warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unexpected token %s",
- tokToString(tok));
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unexpected token %s",
+ tokToString(tok));
break;
}
}
}
- tok=doctokenizerYYlex();
- while (tok==TK_WORD) // there are values following the title
+ if (!m_children.isEmpty())
{
- if (g_token->name=="width")
- {
- m_width=g_token->chars;
- }
- else if (g_token->name=="height")
- {
- m_height=g_token->chars;
- }
- else
+ tok=doctokenizerYYlex();
+ while (tok==TK_WORD) // there are values following the title
{
- warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unknown option %s after image title",
+ if (g_token->name=="width")
+ {
+ m_width=g_token->chars;
+ }
+ else if (g_token->name=="height")
+ {
+ m_height=g_token->chars;
+ }
+ else
+ {
+ warn_doc_error(g_fileName,doctokenizerYYlineno,"Warning: Unknown option %s after image title",
g_token->name.data());
+ }
+ tok=doctokenizerYYlex();
}
- tok=doctokenizerYYlex();
}
- ASSERT(tok==0);
doctokenizerYYsetStatePara();
handlePendingStyleCommands(this,m_children);