diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-03-22 14:42:53 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-03-22 14:42:53 -0300 |
commit | 230739c762b2199ac6121cd0a280809e9ed8a31a (patch) | |
tree | 18de5c5e884c999eba61a3a6a5467df41f078fa9 /tools/editor/plugins | |
parent | 8c91dadff7422c3f6ba5b259634e9ae64b5e270d (diff) | |
parent | cde55bee91322e47769a6eb34f25de95b6f19ad0 (diff) |
Merge pull request #1538 from rollenrolm/issue_#1484
Fix for Issue #1484: Don't strip whitespace on line comment
Diffstat (limited to 'tools/editor/plugins')
-rw-r--r-- | tools/editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/script_editor_plugin.cpp b/tools/editor/plugins/script_editor_plugin.cpp index 1349d5ccab..bb9b36bb66 100644 --- a/tools/editor/plugins/script_editor_plugin.cpp +++ b/tools/editor/plugins/script_editor_plugin.cpp @@ -920,7 +920,7 @@ void ScriptEditor::_menu_option(int p_option) { String line_text = tx->get_line(i); if (line_text.begins_with("#")) - line_text = line_text.strip_edges().substr(1, line_text.length()); + line_text = line_text.substr(1, line_text.length()); else line_text = "#" + line_text; tx->set_line(i, line_text); @@ -932,7 +932,7 @@ void ScriptEditor::_menu_option(int p_option) { String line_text = tx->get_line(begin); if (line_text.begins_with("#")) - line_text = line_text.strip_edges().substr(1, line_text.length()); + line_text = line_text.substr(1, line_text.length()); else line_text = "#" + line_text; tx->set_line(begin, line_text); |