X Tutup
Skip to content

Fix --dump-extension-api-with-docs indentation#110557

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Splizard:fix-dump-extension-api-with-docs-indentation
Sep 16, 2025
Merged

Fix --dump-extension-api-with-docs indentation#110557
Repiteo merged 1 commit intogodotengine:masterfrom
Splizard:fix-dump-extension-api-with-docs-indentation

Conversation

@Splizard
Copy link
Contributor

@Splizard Splizard commented Sep 16, 2025

xml codeblock indentation was changed from spaces to tabs but the tabs were being replaced with empty strings when exported with --dump-extension-api-with-docs, this is small change so that tab characters are no longer replaced.

@Splizard Splizard requested a review from a team as a code owner September 16, 2025 08:59
@AThousandShips AThousandShips changed the title fix #110555 Fix dump-extension-api-with-docs indentation Sep 16, 2025
@AThousandShips AThousandShips changed the title Fix dump-extension-api-with-docs indentation Fix --dump-extension-api-with-docs indentation Sep 16, 2025
@AThousandShips AThousandShips added bug topic:gdextension regression cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release labels Sep 16, 2025
@AThousandShips AThousandShips added this to the 4.6 milestone Sep 16, 2025
@AThousandShips
Copy link
Member

Please update your commit message to describe what the fix does, and we try to avoid linking issues in the commit as it creates a lot of noise in the issue whenever the commit is updated

xml codeblock indentation was changed from spaces to tabs but the tabs
were being replaced with empty strings when exported with
--dump-extension-api-with-docs, this is small change so that tab
characters are no longer replaced.
@Splizard Splizard force-pushed the fix-dump-extension-api-with-docs-indentation branch from 68a9257 to e913155 Compare September 16, 2025 10:05
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I haven't tested, but the code changes look good to me. This matches this line in editor_help.cpp:

https://github.com/godotengine/godot/blob/master/editor/doc/editor_help.cpp#L2489

It was updated in #89819 with the switch from spaces to tabs, but the code in extension_api_dump.cpp wasn't updated to match

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works as expected.

Previously, extension_api.json had no instances of \t\t (two consecutive tabs or more), but now it does.

@Repiteo Repiteo merged commit fb23f7d into godotengine:master Sep 16, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Sep 16, 2025

Thanks!

ProfessorOctopus pushed a commit to ProfessorOctopus/godot that referenced this pull request Sep 17, 2025
…n-api-with-docs-indentation

Fix `--dump-extension-api-with-docs` indentation
@Repiteo
Copy link
Contributor

Repiteo commented Sep 22, 2025

Cherry-picked to 4.5

@Repiteo Repiteo removed the cherrypick:4.5 Considered for cherry-picking into a future 4.5.x release label Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[4.5] dump-extension-api-with-docs regression: missing indentation for code snippets

5 participants

X Tutup