3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02:00

Remove leading whitespace at beginning of diagnostics

This commit is contained in:
Pragmatic Software 2015-01-21 01:05:49 -08:00
parent d0a007853c
commit 48bd04ba31

View File

@ -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/;
}
}