// Tags like <img />
struct CompTag {
///
+ CompTag(std::string const & tag)
+ : tag_(tag) {}
+ ///
CompTag(std::string const & tag, std::string const & attr)
: tag_(tag), attr_(attr) {}
/// <tag_ attr_ />
///
XHTMLStream & operator<<(docstring const &);
///
+ XHTMLStream & operator<<(const char *);
+ ///
XHTMLStream & operator<<(char_type);
///
XHTMLStream & operator<<(StartTag const &);
XHTMLStream & operator<<(EndTag const &);
///
XHTMLStream & operator<<(CompTag const &);
+ /// A trivial struct that functions as a stream modifier.
+ /// << NextRaw() causes the next string-like thing sent to the
+ /// stream not to be escaped.
+ struct NextRaw {};
+ ///
+ XHTMLStream & operator<<(NextRaw const &);
private:
///
void clearTagDeque();
///
bool isTagOpen(std::string const &);
///
+ void writeError(std::string const &);
+ ///
odocstream & os_;
///
// int tab_;
TagDeque pending_tags_;
/// remembers the history, so we can make sure we nest properly.
TagStack tag_stack_;
+ ///
+ bool nextraw_;
};
///