const gchar *enriched;
const gchar *html;
gboolean needs_param;
- EnrichedParamParser parse_param; /* parses *and* validates the input */
+ EnrichedParamParser parse_param; /* parses *and * validates the input */
} enriched_tags[] = {
{ "bold", "<b>", FALSE, NULL },
{ "/bold", "</b>", FALSE, NULL },
};
static gchar *
-param_parse_color (const gchar *inptr, gint inlen)
+param_parse_color (const gchar *inptr,
+ gint inlen)
{
const gchar *inend, *end;
guint32 rgb = 0;
}
static gchar *
-param_parse_font (const gchar *fontfamily, gint inlen)
+param_parse_font (const gchar *fontfamily,
+ gint inlen)
{
register const gchar *inptr = fontfamily;
const gchar *inend = inptr + inlen;
}
static gchar *
-param_parse_lang (const gchar *lang, gint inlen)
+param_parse_lang (const gchar *lang,
+ gint inlen)
{
register const gchar *inptr = lang;
const gchar *inend = inptr + inlen;
}
static gchar *
-param_parse (const gchar *enriched, const gchar *inptr, gint inlen)
+param_parse (const gchar *enriched,
+ const gchar *inptr,
+ gint inlen)
{
gint i;
need_input:
/* the reason we ignore @flush here is because if there isn't
- enough input to parse a tag, then there's nothing we can
- do. */
+ * enough input to parse a tag, then there's nothing we can
+ * do. */
if (inptr < inend)
camel_mime_filter_backup (mime_filter, inptr, (unsigned) (inend - inptr));
* richtext version of @in.
**/
gchar *
-camel_enriched_to_html (const gchar *in, guint32 flags)
+camel_enriched_to_html (const gchar *in,
+ guint32 flags)
{
CamelMimeFilter *filter;
gsize outlen, outpre;
filter = camel_mime_filter_enriched_new (flags);
- camel_mime_filter_complete (filter, (gchar *)in, strlen (in), 0, &outbuf, &outlen, &outpre);
+ camel_mime_filter_complete (filter, (gchar *) in, strlen (in), 0, &outbuf, &outlen, &outpre);
outbuf = g_strndup (outbuf, outlen);
g_object_unref (filter);