Skip to content

Commit 39570a9

Browse files
committed
Merge branch 'dev' into 'master'.
2 parents 3a342b1 + 49dc810 commit 39570a9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Symfony/src/Codebender/CompilerBundle/Handler/CompilerHandler.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,6 @@ private function getGccErrorFileList ($avr_output) {
11031103

11041104
private function cleanUpClangOutput ($clang_output, $compiler_config) {
11051105

1106-
$clang_output = strip_tags($clang_output);
11071106
$content_line_array = explode("\n", $clang_output);
11081107

11091108
$header = "";
@@ -1152,6 +1151,11 @@ private function cleanUpClangOutput ($clang_output, $compiler_config) {
11521151
}
11531152

11541153
if ($header != "" && $body != "") {
1154+
if (strpos($header, "</font></b>") == 0)
1155+
$header = substr_replace($header, '', 0, 11);
1156+
if (array_key_exists($key + 1, $content_line_array)
1157+
&& strpos($content_line_array[$key + 1], "</font></b>") == 0)
1158+
$body = $body . "</font></b>";
11551159
$final .= $header ."\n";
11561160
$final .= $body . "\n";
11571161
$header = "";
@@ -1173,6 +1177,8 @@ private function cleanUpClangOutput ($clang_output, $compiler_config) {
11731177
&& strpos($header, "in asm") === false
11741178
&& strpos($body, "in asm") === false) {
11751179
if ($header != "" && $body != "") {
1180+
if (strpos($header, "</font></b>") == 0)
1181+
$header = substr_replace($header, '', 0, 11);
11761182
$final .= $header ."\n";
11771183
$final .= $body . "\n";
11781184
}

0 commit comments

Comments
 (0)