godot icon indicating copy to clipboard operation
godot copied to clipboard

Shader editor does not respect `Trim Trailing Whitespace On Save` editor setting

Open and-rad opened this issue 1 year ago • 0 comments

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.

Minimal reproduction project

shader-no-trim.zip

and-rad avatar Mar 06 '23 12:03 and-rad