From 0ee96935a39932926a4fadb35f65b12272935f59 Mon Sep 17 00:00:00 2001 From: steve donovan Date: Wed, 3 Apr 2013 12:20:54 +0200 Subject: [PATCH] charset functionality was borked in general case --- ldoc/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldoc/html.lua b/ldoc/html.lua index 162bc9d..418ccf7 100644 --- a/ldoc/html.lua +++ b/ldoc/html.lua @@ -172,7 +172,7 @@ function html.generate_output(ldoc, args, project) local function set_charset (ldoc,m) m = m or ldoc.module - ldoc.doc_charset = m.tags.charset or ldoc.charset + ldoc.doc_charset = (m and m.tags.charset) or ldoc.charset end local module_template,err = utils.readfile (path.join(args.template,ldoc.templ))