- if ( ! ml_puts(mbuf, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD "
- "HTML 4.01//EN\" \"http://www.w3.org"
- "/TR/html4/strict.dtd\">\n", &res))
- return(0);
- if ( ! ml_puts(mbuf, "<html>\n", &res))
- return(0);
- if ( ! ml_puts(mbuf, "<head>\n", &res))
- return(0);
- if ( ! ml_puts(mbuf, " <title>Manual page</title>\n", &res))
- return(0);
- if ( ! ml_puts(mbuf, " <meta http-equiv=\"Content-Type\" "
- "content=\"text/html; "
- "charset=utf-8\">\n", &res))
- return(0);
- if ( ! ml_puts(mbuf, " <meta name=\"resource-type\" "
- "content=\"document\">\n", &res))
- return(0);
- if ( ! ml_puts(mbuf, "</head>\n", &res))
+
+ (void)snprintf(buf, sizeof(buf) - 1,
+ preamble, title, section);
+
+ if ( ! ml_puts(mbuf, buf, &res))