From 84283c5112e74b708fe984701427b72a25077ca0 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 01 Oct 2017 01:20:44 -0400 Subject: mq_html_document(): New (incomplete) function --- (limited to 'src') diff --git a/src/html.c b/src/html.c index bf4f18c..fb0d090 100644 --- a/src/html.c +++ b/src/html.c @@ -26,6 +26,35 @@ #include "html.h" +static const gchar *document_format = + "\n" + "\n" + "\n" + "\n" + "%s\n" + "\n" + "%s" + "\n"; + +gchar * +mq_html_document(const gchar *title, ...) +{ + va_list ap; + gchar *children; + gchar *document; + + va_start(ap, element); + children = mq_html_container_v("body", ap); + va_end(ap); + + document = g_strdup_printf(document_format, + GTK_TEXT_DIR_RTL ? "rtl" : "ltr", title, children); + + g_free(children); + + return document; +} + gchar * mq_html_container(const gchar *element, ...) { -- cgit v0.9.1