{
if (!ds_is_empty (&e->deferred_syntax))
{
- char *syntax = ds_steal_cstr (&e->deferred_syntax);
- output_submit__ (e, text_item_super (
- text_item_create_nocopy (TEXT_ITEM_SYNTAX, syntax)));
+ ds_trim (&e->deferred_syntax, ss_cstr ("\n"));
+ if (!ds_is_empty (&e->deferred_syntax))
+ {
+ char *syntax = ds_steal_cstr (&e->deferred_syntax);
+ output_submit__ (e, text_item_super (text_item_create_nocopy (
+ TEXT_ITEM_SYNTAX, syntax)));
+ }
}
}
extern const struct output_driver_factory list_driver_factory;
extern const struct output_driver_factory html_driver_factory;
extern const struct output_driver_factory csv_driver_factory;
-#ifdef ODF_WRITE_SUPPORT
extern const struct output_driver_factory odt_driver_factory;
-#endif
#ifdef HAVE_CAIRO
extern const struct output_driver_factory pdf_driver_factory;
extern const struct output_driver_factory ps_driver_factory;
&list_driver_factory,
&html_driver_factory,
&csv_driver_factory,
-#ifdef ODF_WRITE_SUPPORT
&odt_driver_factory,
-#endif
#ifdef HAVE_CAIRO
&pdf_driver_factory,
&ps_driver_factory,