@@ -1103,7 +1103,6 @@ private function getGccErrorFileList ($avr_output) {
1103
1103
1104
1104
private function cleanUpClangOutput ($ clang_output , $ compiler_config ) {
1105
1105
1106
- $ clang_output = strip_tags ($ clang_output );
1107
1106
$ content_line_array = explode ("\n" , $ clang_output );
1108
1107
1109
1108
$ header = "" ;
@@ -1152,6 +1151,11 @@ private function cleanUpClangOutput ($clang_output, $compiler_config) {
1152
1151
}
1153
1152
1154
1153
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> " ;
1155
1159
$ final .= $ header ."\n" ;
1156
1160
$ final .= $ body . "\n" ;
1157
1161
$ header = "" ;
@@ -1173,6 +1177,8 @@ private function cleanUpClangOutput ($clang_output, $compiler_config) {
1173
1177
&& strpos ($ header , "in asm " ) === false
1174
1178
&& strpos ($ body , "in asm " ) === false ) {
1175
1179
if ($ header != "" && $ body != "" ) {
1180
+ if (strpos ($ header , "</font></b> " ) == 0 )
1181
+ $ header = substr_replace ($ header , '' , 0 , 11 );
1176
1182
$ final .= $ header ."\n" ;
1177
1183
$ final .= $ body . "\n" ;
1178
1184
}
0 commit comments