-
-///////////////////////////////////////////////////////////////
-// OLD STUFF to be replaced
-
-// FIXME This needs to be protected somehow.
-static vector<string> taglist;
-
-bool openTag(odocstream & os, string const & tag, string const & attr)
-{
- if (tag.empty())
- return false;
- os << from_ascii("<" + tag + (attr.empty() ? "" : " " + attr) + ">");
- taglist.push_back(tag);
- return true;
-}
-
-
-bool closeTag(odocstream & os, string const & tag)
-{
- if (tag.empty())
- return false;
- // FIXME Check for proper nesting
- if (taglist.empty()){
- LYXERR0("Last tag not found when closing `" << tag << "'!");
- return false;
- }
- string const & lasttag = taglist.back();
- if (lasttag != tag) {
- LYXERR0("Last tag was `" << lasttag << "' when closing `" << tag << "'!");
- return false;
- }
- taglist.pop_back();
- os << from_ascii("</" + tag + ">");
- return true;
-}
-
-
-
-} // html