aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-11 23:47:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-11 23:47:47 +0200
commit503cd7a8cbb54719db115391de17ec265ea2b543 (patch)
tree0db5c25a13b30d90c34c2efc2b8591896bbe197d /examples
parentd49c8876bc97a900c61bb053ecec9374be448014 (diff)
Add support for "checked" end_element(), end_attribute()
Diffstat (limited to 'examples')
-rw-r--r--examples/xhtml/driver.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/xhtml/driver.cxx b/examples/xhtml/driver.cxx
index c298983..ff1d2a4 100644
--- a/examples/xhtml/driver.cxx
+++ b/examples/xhtml/driver.cxx
@@ -20,7 +20,7 @@ namespace xhtml
s.start_element (xmlns, "html");
s.namespace_decl (xmlns, "");
}
- inline void html_ (serializer& s) {s.end_element ();}
+ inline void html_ (serializer& s) {s.end_element (xmlns, "html");}
inline void _head (serializer& s)
{
@@ -29,16 +29,16 @@ namespace xhtml
s.attribute ("charset", "UTF-8");
s.end_element ();
}
- inline void head_ (serializer& s) {s.end_element ();}
+ inline void head_ (serializer& s) {s.end_element (xmlns, "head");}
inline void _title (serializer& s) {s.start_element (xmlns, "title");}
- inline void title_ (serializer& s) {s.end_element ();}
+ inline void title_ (serializer& s) {s.end_element (xmlns, "title");}
inline void _body (serializer& s) {s.start_element (xmlns, "body");}
- inline void body_ (serializer& s) {s.end_element ();}
+ inline void body_ (serializer& s) {s.end_element (xmlns, "body");}
inline void _p (serializer& s) {s.start_element (xmlns, "p");}
- inline void p_ (serializer& s) {s.end_element ();}
+ inline void p_ (serializer& s) {s.end_element (xmlns, "p");}
// "Inline" elements, i.e., those that are written without
// indentation.
@@ -50,7 +50,7 @@ namespace xhtml
}
inline void em_ (serializer& s)
{
- s.end_element ();
+ s.end_element (xmlns, "em");
s.resume_indentation ();
}