You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a custom template is using CRLF newlines (typical in Windows), the generated docstring would contain extra line returns and trailing white spaces.
I copied the exact google template from the source as a custom template. When I saved the template file with LF newlines, the behavior was expected. When the template was saved with CRLF, the output is what's below.
Versions (please complete the following information):
autoDocstring Version: v0.5.4
Operating System: Windows 11
Vscode Version: 1.59.1
Original Code (with line to generate on):
deffoo(param1, param2: str, param3: Optional[str]=None):
# generate on this linepass
Describe the bug
When a custom template is using CRLF newlines (typical in Windows), the generated docstring would contain extra line returns and trailing white spaces.
I copied the exact google template from the source as a custom template. When I saved the template file with LF newlines, the behavior was expected. When the template was saved with CRLF, the output is what's below.
Versions (please complete the following information):
Original Code (with line to generate on):
Expected Result:
Actual Result:
Note the trailing white spaces in the new lines.
Stack trace:
If an error was reported by autodocstring please copy the stack trace from the
autoDocstring
output channel.N/A
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: