godot
godot copied to clipboard
Shader editor does not respect `Trim Trailing Whitespace On Save` editor setting
Godot version
v4.1.dev.custom_build [4fceabc30]
System information
Windows 10, Vulkan, Geforce RTX 2060
Issue description
While the regular text editor works as expected, the shader editor does not trim whitespace even if the settings option is enabled. This is somewhat unexpected because I assumed the setting also covers the shader editor since it is used to edit text.
Steps to reproduce
Open the MRP and make sure that Trim Trailing Whitespace On Save
is enabled in the editor settings. Open the box.gdshader
file, edit it, and save. Observe how all the whitespace is happily trailing.