Document end indicator written when tag directives are present

* The directives are not emitted if none but the default tags are specified.