summaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-12-16 20:08:24 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-12-16 20:08:24 (GMT)
commitfb864720e5a808a6e9052b2cc5a1a942cb7665ab (patch)
tree0de7715d3a2308f07d2c97970d88def415c52ae4 /addon
parenta641157ea8fc582d539e35bed962018c58c0d407 (diff)
downloadDoxygen-fb864720e5a808a6e9052b2cc5a1a942cb7665ab.zip
Doxygen-fb864720e5a808a6e9052b2cc5a1a942cb7665ab.tar.gz
Doxygen-fb864720e5a808a6e9052b2cc5a1a942cb7665ab.tar.bz2
Release-1.3-rc2
Diffstat (limited to 'addon')
-rw-r--r--addon/doxmlparser/src/dochandler.cpp11
-rw-r--r--addon/doxmlparser/src/dochandler.h1
2 files changed, 11 insertions, 1 deletions
diff --git a/addon/doxmlparser/src/dochandler.cpp b/addon/doxmlparser/src/dochandler.cpp
index 6bd2476..34079a9 100644
--- a/addon/doxmlparser/src/dochandler.cpp
+++ b/addon/doxmlparser/src/dochandler.cpp
@@ -1057,6 +1057,7 @@ HighlightHandler::HighlightHandler(IBaseHandler *parent)
m_children.setAutoDelete(TRUE);
addEndHandler("highlight",this,&HighlightHandler::endHighlight);
addStartHandler("ref",this,&HighlightHandler::startRef);
+ addStartHandler("sp",this,&HighlightHandler::startSpace);
m_hl = IDocHighlight::Invalid;
}
@@ -1070,12 +1071,13 @@ void HighlightHandler::startHighlight(const QXmlAttributes& attrib)
m_hl = s_highlightMapper->stringToKind(m_hlString);
m_curString="";
m_parent->setDelegate(this);
+ debug(2,"start highlight\n");
}
void HighlightHandler::endHighlight()
{
addTextNode();
- debug(2,"highlight class=`%s'\n",m_hlString.data());
+ debug(2,"end highlight class=`%s'\n",m_hlString.data());
m_parent->setDelegate(0);
}
@@ -1087,8 +1089,15 @@ void HighlightHandler::startRef(const QXmlAttributes& attrib)
rh->startRef(attrib);
}
+void HighlightHandler::startSpace(const QXmlAttributes&)
+{
+ m_curString=" ";
+ addTextNode();
+}
+
void HighlightHandler::addTextNode()
{
+ printf("m_curString=`%s'\n",m_curString.data());
if (!m_curString.isEmpty())
{
m_children.append(new TextNode(m_curString,IDocMarkup::Normal,0));
diff --git a/addon/doxmlparser/src/dochandler.h b/addon/doxmlparser/src/dochandler.h
index 7a0bda4..aa9d3f3 100644
--- a/addon/doxmlparser/src/dochandler.h
+++ b/addon/doxmlparser/src/dochandler.h
@@ -765,6 +765,7 @@ class HighlightHandler : public DocHighlightImpl, public BaseHandler<HighlightHa
void startHighlight(const QXmlAttributes& attrib);
void endHighlight();
virtual void startRef(const QXmlAttributes&);
+ virtual void startSpace(const QXmlAttributes&);
// IDocHighlight
virtual Kind kind() const { return DocImpl::Highlight; }