From 48bd04ba31301f656343c7172ee93fc7b46c2284 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 21 Jan 2015 01:05:49 -0800 Subject: [PATCH] Remove leading whitespace at beginning of diagnostics --- modules/compiler_vm/languages/tendra.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/compiler_vm/languages/tendra.pm b/modules/compiler_vm/languages/tendra.pm index eff0bea8..ec1eff99 100755 --- a/modules/compiler_vm/languages/tendra.pm +++ b/modules/compiler_vm/languages/tendra.pm @@ -47,6 +47,7 @@ sub postprocess_output { $self->{output} =~ s/"$self->{sourcefile}", line \d+:\s*//g; $self->{output} =~ s/Error:\s+\[/Error: [/g; $self->{output} =~ s/Warning:\s+\[/Warning: [/g; + $self->{output} =~ s/^\[\s+(Warning|Error)/[$1/; } }