+ struct doc_section *d;
+ char *lowertype;
+ unsigned int i;
+
+ /* If previous section was empty, delete it. */
+ d = list_tail(list, struct doc_section, list);
+ if (d && empty_section(d)) {
+ list_del(&d->list);
+ talloc_free(d);
+ }
+
+ d = talloc(list, struct doc_section);