Skip to content

Fix broken multiline statement docstrings#111

Merged
NathanLovato merged 1 commit intoGDQuest:mainfrom
shadr:fix-multiline-statement-docstrings
Sep 29, 2025
Merged

Fix broken multiline statement docstrings#111
NathanLovato merged 1 commit intoGDQuest:mainfrom
shadr:fix-multiline-statement-docstrings

Conversation

@shadr
Copy link
Copy Markdown
Contributor

@shadr shadr commented Sep 29, 2025

This PR fixes a case with multiline docstrings that I missed in #102.
Previously formatter transformed

var a = 10

## This is function docstring
## It has multiple lines.
func a():
	pass

into

var a = 10

## This is function docstring


## It has multiple lines.
func a():
	pass

With this PR formatter no longer inserts new lines in the middle of a docstring.

@NathanLovato NathanLovato merged commit bc70b20 into GDQuest:main Sep 29, 2025
@NathanLovato
Copy link
Copy Markdown
Contributor

Thank you very much!

@shadr shadr deleted the fix-multiline-statement-docstrings branch September 29, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants