1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

Browser: Do not visualize trailing whitespace in the source viewer

Trailing whitespace in the source view is not actionable, so there's no
benefit to showing it.
This commit is contained in:
Timothy Flynn 2023-08-24 18:30:02 -04:00 committed by Andreas Kling
parent 6808b52c1b
commit 18bbbab78c

View file

@ -83,6 +83,7 @@ void Tab::view_source(const URL& url, DeprecatedString const& source)
editor->set_mode(GUI::TextEditor::ReadOnly); editor->set_mode(GUI::TextEditor::ReadOnly);
editor->set_syntax_highlighter(make<Web::HTML::SyntaxHighlighter>()); editor->set_syntax_highlighter(make<Web::HTML::SyntaxHighlighter>());
editor->set_ruler_visible(true); editor->set_ruler_visible(true);
editor->set_visualize_trailing_whitespace(false);
window->resize(640, 480); window->resize(640, 480);
window->set_title(url.to_deprecated_string()); window->set_title(url.to_deprecated_string());
window->set_icon(g_icon_bag.filetype_text); window->set_icon(g_icon_bag.filetype_text);