File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ impl Default for SerializeOpts {
46
46
}
47
47
48
48
#[ derive( Default ) ]
49
- struct ElemInfo {
49
+ pub struct ElemInfo {
50
50
html_name : Option < LocalName > ,
51
51
ignore_children : bool ,
52
52
processed_first_child : bool ,
53
53
}
54
54
55
- struct HtmlSerializer < Wr : Write > {
56
- writer : Wr ,
55
+ pub struct HtmlSerializer < Wr : Write > {
56
+ pub writer : Wr ,
57
57
opts : SerializeOpts ,
58
58
stack : Vec < ElemInfo > ,
59
59
}
@@ -71,7 +71,7 @@ fn tagname(name: &QualName) -> LocalName {
71
71
}
72
72
73
73
impl < Wr : Write > HtmlSerializer < Wr > {
74
- fn new ( writer : Wr , opts : SerializeOpts ) -> Self {
74
+ pub fn new ( writer : Wr , opts : SerializeOpts ) -> Self {
75
75
let html_name = match opts. traversal_scope {
76
76
TraversalScope :: IncludeNode | TraversalScope :: ChildrenOnly ( None ) => None ,
77
77
TraversalScope :: ChildrenOnly ( Some ( ref n) ) => Some ( tagname ( n) )
You can’t perform that action at this time.
0 commit comments