Another small fix

This commit is contained in:
Robert Jelic
2025-03-18 02:06:02 +01:00
parent 64ecc31d2c
commit d8d3e6b555
2 changed files with 2 additions and 2 deletions

View File

@@ -305,7 +305,7 @@ local API = {}
--- Starts a custom benchmark
--- @shortDescription Starts timing a custom operation
--- @param name string The name of the benchmark
--- @param options? table Optional configuration
--- @param options? table Optional configuration
function API.start(name, options)
options = options or {}
local profile = createProfile()

View File

@@ -480,7 +480,7 @@ function markdown.saveToFile(source, output)
for k,v in pairs(sortedOutput) do
if(v.data.splitClass)then
local subFile = io.open(source.."_"..v.data.className..".md", "w")
local subFile = io.open(source.."_"..v.data.className:gsub(":", "_"):gsub(" ", "")..".md", "w")
if not subFile then
error("Could not open file for writing: " .. source.."_"..v.data.className..".md")
end