Comments about rendering the root node
commit88c7e254d11fcda3cc9e4360d50a736061b55135
authorNeil Mitchell <ndmitchell@gmail.com>
dateWed 30 Nov 2016, 19:08 (10 years ago)
parentb18669f
cbits/hexml.c+1
@@ -156,6 +156,7 @@ int node_render(document* d, node* n, char* buffer, int length)
156156 r.buffer = buffer;
157157 r.length = length;
158158 r.cursor = 0;
159+ // The root node (and only the root node) has an empty length, so just render its innards
159160 if (n->name.length == 0)
160161 render_content(&r, n);
161162 else