1
0

InfoDump: Trim description string before outputting to README.md.

This commit is contained in:
Mattes D 2016-09-22 12:53:56 +02:00
parent 815acd56ac
commit 95b9a00eb5

View File

@ -35,6 +35,15 @@ end
--- Removes any whitespace at the beginning and end of the string
local function TrimString(a_Str)
return (string.match(a_Str, "^%s*(.-)%s*$"))
end
--- Replaces generic formatting with forum-specific formatting
-- Also removes the single line-ends
local function ForumizeString(a_Str)
@ -628,7 +637,7 @@ local function DumpPluginInfoGithub(a_PluginFolder, a_PluginInfo)
end
-- Write the description:
f:write(GithubizeString(a_PluginInfo.Description), "\n")
f:write(TrimString(GithubizeString(a_PluginInfo.Description)), "\n")
DumpAdditionalInfoGithub(a_PluginInfo, f)
DumpCommandsGithub(a_PluginInfo, f)
DumpPermissionsGithub(a_PluginInfo, f)