diff --git a/ldoc.lua b/ldoc.lua index 0c49b9d..f532faa 100644 --- a/ldoc.lua +++ b/ldoc.lua @@ -557,6 +557,8 @@ if type(ldoc.examples) == 'table' then prettify_source_files(ldoc.examples,"example") end +ldoc.is_file_prettyfied = {} + if ldoc.prettify_files then local files = List() local linemap = {} @@ -569,6 +571,17 @@ if ldoc.prettify_files then end linemap[F.filename] = ls end + + if type(ldoc.prettify_files) == 'table' then + files = tools.expand_file_list(ldoc.prettify_files, '*.*') + -- -- not sure about resolving ldoc.prettify_files as string due to backward compatibility, see: + -- -- - tests/styles/opt.ld:7 + -- -- - doc/html.lua:266 + -- elseif type(ldoc.prettify_files) == 'string' then + -- files = tools.expand_file_list({ldoc.prettify_files}, '*.*') + end + + ldoc.is_file_prettyfied = tablex.makeset(files) prettify_source_files(files,"file",linemap) end diff --git a/ldoc/html/ldoc_ltp.lua b/ldoc/html/ldoc_ltp.lua index e0491c6..e1e93fb 100644 --- a/ldoc/html/ldoc_ltp.lua +++ b/ldoc/html/ldoc_ltp.lua @@ -153,7 +153,7 @@ return [==[