InfoDump: Trim description string before outputting to README.md.
This commit is contained in:
parent
815acd56ac
commit
95b9a00eb5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user