From 0f332776daef8f33b441449d3b04af7c624eb9cc Mon Sep 17 00:00:00 2001 From: Bastian Doetsch Date: Wed, 10 Apr 2024 14:47:59 +0200 Subject: [PATCH] fix: trim whitespace in code lines [IDE-242] (#509) --- .../ui/toolwindow/panels/SuggestionDescriptionPanelFromLS.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/snyk/plugin/ui/toolwindow/panels/SuggestionDescriptionPanelFromLS.kt b/src/main/kotlin/io/snyk/plugin/ui/toolwindow/panels/SuggestionDescriptionPanelFromLS.kt index 612e7d18d..f5283d441 100644 --- a/src/main/kotlin/io/snyk/plugin/ui/toolwindow/panels/SuggestionDescriptionPanelFromLS.kt +++ b/src/main/kotlin/io/snyk/plugin/ui/toolwindow/panels/SuggestionDescriptionPanelFromLS.kt @@ -239,7 +239,7 @@ class SuggestionDescriptionPanelFromLS( } stepPanel.add(positionLabel, baseGridConstraintsAnchorWest(0, indent = 1)) - val codeLine = codeLine(flow.content) + val codeLine = codeLine(flow.content.trimStart()) codeLine.isOpaque = false stepPanel.add( codeLine,