Skip to content

Commit 4fcbe70

Browse files
committed
cats generator removes trailing spaces;
1 parent 8fd4ced commit 4fcbe70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/generators/cats.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end
6868
--- contains newlines, they are prefixed with `---`.
6969
local function doc(str)
7070
str = str or ""
71-
return "---" .. str:gsub("\n", "\n---")
71+
return "---" .. str:gsub("\n", "\n---"):gsub('%s*$', '')
7272
end
7373

7474
--- Determines if a parameter is optional. If it is, returns a `?` suffix.

0 commit comments

Comments
 (0)