mirror of
https://github.com/TangentFoxy/.lua-files.git
synced 2024-11-20 21:34:23 +00:00
more complete examples
This commit is contained in:
parent
d58f161e9e
commit
eeffe27258
@ -45,7 +45,8 @@ Example:
|
||||
"sections": {
|
||||
"start": 1,
|
||||
"finish": 4,
|
||||
"naming": "Chapter"
|
||||
"naming": "Chapter",
|
||||
"automatic_naming": true
|
||||
},
|
||||
"page_counts": [1, 5, 3, 3]
|
||||
}
|
||||
|
@ -29,7 +29,8 @@ Configuration example(s):
|
||||
"sections": {
|
||||
"start": 1,
|
||||
"finish": 4,
|
||||
"naming": "Chapter"
|
||||
"naming": "Chapter",
|
||||
"automatic_naming": true
|
||||
},
|
||||
"page_counts": [1, 5, 3, 3]
|
||||
}
|
||||
@ -94,17 +95,17 @@ local function get_config()
|
||||
-- print("config done")
|
||||
|
||||
if not config.authors then
|
||||
config.authors = {} -- at least have an empty table so it doesn't error below
|
||||
end
|
||||
|
||||
if config.author then -- old style single author will be prepended to authors list
|
||||
table.insert(config.authors, 1, config.author)
|
||||
config.authors = {} -- at least have an empty table so it doesn't error below TODO verify that this is actually true
|
||||
end
|
||||
|
||||
if not config.keywords then
|
||||
config.keywords = {} -- TODO test if it will work empty
|
||||
end
|
||||
|
||||
if config.author then -- old style single author will be prepended to authors list
|
||||
table.insert(config.authors, 1, config.author)
|
||||
end
|
||||
|
||||
-- detecting manually specified sections and flagging it to the rest of the script
|
||||
if config.sections[1] then
|
||||
config.sections.start = 1
|
||||
|
Loading…
Reference in New Issue
Block a user