#if !NO_HTML
#include <config.h>
+#include "htmlP.h"
#include <assert.h>
#include <errno.h>
#include <stdlib.h>
#include "error.h"
#include "filename.h"
#include "getline.h"
-#include "htmlP.h"
#include "output.h"
#include "som.h"
#include "tab.h"
static int postopen (struct file_ext *);
static int preclose (struct file_ext *);
-int
+static int
html_open_global (struct outp_class *this unused)
{
return 1;
}
-int
+static int
html_close_global (struct outp_class *this unused)
{
return 1;
}
-int
+static int
html_preopen_driver (struct outp_driver *this)
{
struct html_driver_ext *x;
return 1;
}
-int
+static int
html_postopen_driver (struct outp_driver *this)
{
struct html_driver_ext *x = this->ext;
return 1;
}
-int
+static int
html_close_driver (struct outp_driver *this)
{
struct html_driver_ext *x = this->ext;
};
static struct outp_option_info option_info;
-void
+static void
html_option (struct outp_driver *this, const char *key, const struct string *val)
{
struct html_driver_ext *x = this->ext;
*dest = xstrdup (ds_value (val));
}
break;
-#if __CHECKER__
- case 42000:
- assert (0);
-#endif
default:
assert (0);
}
return 1;
}
-int
+static int
html_open_page (struct outp_driver *this)
{
struct html_driver_ext *x = this->ext;
return !ferror (x->file.file);
}
-int
+static int
html_close_page (struct outp_driver *this)
{
struct html_driver_ext *x = this->ext;
static void output_tab_table (struct outp_driver *, struct tab_table *);
-void
+static void
html_submit (struct outp_driver *this, struct som_table *s)
{
extern struct som_table_class tab_table_class;
strcpy (cp, ">");
fputs (header, x->file.file);
- {
- char *s = ls_value (cc);
- size_t l = ls_length (cc);
-
- while (l && isspace ((unsigned char) *s))
- {
- l--;
- s++;
- }
+ if ( ! (*ct & TAB_EMPTY) )
+ {
+ char *s = ls_value (cc);
+ size_t l = ls_length (cc);
+
+ while (l && isspace ((unsigned char) *s))
+ {
+ l--;
+ s++;
+ }
- escape_string (x->file.file, s, l);
- }
+ escape_string (x->file.file, s, l);
+ }
fprintf (x->file.file, "</T%c>\n", tag);
}