Buggy code:
public List < EventBean > getEvents ( ) { } public void addEvent ( EventBean event ) { } public void fill ( BasicDBList messages , List < UserBean > users , Locale locale ) { } public String getAsXWiki ( String serverBase , Locale locale ) { StringBuilder xwiki = new StringBuilder ( ) ; xwiki . append ( "\n{{section}}\n{{column}}\n" ) ; if ( ( questions . size ( ) ) > 0 ) { xwiki . append ( ( ( "\n===<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.questions" , locale ) ) ) + "<seq2seq4repair_space>===\n" ) ) ; for ( String question : this . getQuestions ( ) ) { xwiki . append ( question ) . append ( "\n" ) ; } } if ( ( links . size ( ) ) > 0 ) { xwiki . append ( ( ( "\n===<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.links" , locale ) ) ) + "<seq2seq4repair_space>===\n" ) ) ; for ( String link : this . getLinks ( ) ) { xwiki . append ( "[[" ) . append ( link ) . append ( "]]" ) . append ( "\n" ) ; } } if ( ( files . size ( ) ) > 0 ) { xwiki . append ( ( ( "\n===<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.files" , locale ) ) ) + "<seq2seq4repair_space>===\n" ) ) ; for ( FileBean file : this . getFiles ( ) ) { xwiki . append ( "[[" ) ; xwiki . append ( file . getName ( ) ) . append ( ">>" ) . append ( file . getUrl ( ) . replaceFirst ( "//rest" , ( serverBase + "//rest//private" ) ) ) . append ( "]]" ) ; xwiki . append ( "<seq2seq4repair_space>(" ) . append ( file . getSize ( ) ) . append ( ")\n" ) ; } } if ( ( tasks . size ( ) ) > 0 ) { xwiki . append ( ( ( "\n===<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.tasks" , locale ) ) ) + "<seq2seq4repair_space>===\n" ) ) ; xwiki . append ( ( ( ( ( ( ( "|=<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.tasks.task" , locale ) ) ) + "<seq2seq4repair_space>|=<seq2seq4repair_space>" ) + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.tasks.assignee" , locale ) ) ) + "<seq2seq4repair_space>|=<seq2seq4repair_space>" ) + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.tasks.due" , locale ) ) ) + "\n" ) ) ; for ( TaskBean task : this . getTasks ( ) ) { xwiki . append ( "|<seq2seq4repair_space>" ) . append ( task . getTask ( ) ) . append ( "<seq2seq4repair_space>|<seq2seq4repair_space>" ) . append ( task . getAssignee ( ) ) . append ( "<seq2seq4repair_space>|<seq2seq4repair_space>" ) . append ( task . getDueDate ( ) ) . append ( "<seq2seq4repair_space>\n" ) ; } } if ( ( events . size ( ) ) > 0 ) { xwiki . append ( ( ( "\n===<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.events" , locale ) ) ) + "<seq2seq4repair_space>===\n" ) ) ; xwiki . append ( ( ( ( ( ( ( "|=<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.events.event" , locale ) ) ) + "<seq2seq4repair_space>|=<seq2seq4repair_space>" ) + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.events.start" , locale ) ) ) + "<seq2seq4repair_space>|=<seq2seq4repair_space>" ) + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.events.end" , locale ) ) ) + "\n" ) ) ; for ( EventBean event : this . getEvents ( ) ) { xwiki . append ( "|<seq2seq4repair_space>" ) . append ( event . getSummary ( ) ) . append ( "<seq2seq4repair_space>|<seq2seq4repair_space>" ) . append ( event . getStartDate ( ) ) . append ( "<seq2seq4repair_space>" ) . append ( event . getStartTime ( ) ) . append ( "<seq2seq4repair_space>|<seq2seq4repair_space>" ) . append ( event . getEndDate ( ) ) . append ( "<seq2seq4repair_space>" ) . append ( event . getEndTime ( ) ) . append ( "<seq2seq4repair_space>\n" ) ; } } xwiki . append ( "\n{{//column}}\n" ) ; xwiki . append ( ( ( "\n{{column}}\n===<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.attendees" , locale ) ) ) + "<seq2seq4repair_space>===\n{{panel}}\n" ) ) ; for ( UserBean userBean : this . getAttendees ( ) ) { if ( "available" . equals ( userBean . getStatus ( ) ) ) xwiki . append ( "(//)<seq2seq4repair_space>" ) ; else xwiki . append ( "(x)" ) ; xwiki . append ( "<seq2seq4repair_space>[[" ) . append ( userBean . getFullname ( ) ) . append ( ( ( ">>" + serverBase ) + "//portal//intranet//profile//" ) ) . append ( userBean . getName ( ) ) . append ( "]]\n" ) ; } xwiki . append ( "\n{{//panel}}\n{{//column}}\n{{//section}}\n" ) ; xwiki . append ( ( ( "\n===<seq2seq4repair_space>" + ( ChatUtils . appRes ( "exoplatform.chat.meetingnotes.discussions" , locale ) ) ) + "<seq2seq4repair_space>===\n\n" ) ) ; String prevUser = "" ; for ( MessageBean messageBean : this . getMessages ( ) ) { xwiki . append ( "{{span<seq2seq4repair_space>style='padding:<seq2seq4repair_space>4px;<seq2seq4repair_space>border-bottom:<seq2seq4repair_space>1px<seq2seq4repair_space>dotted<seq2seq4repair_space>#DDD;<seq2seq4repair_space>width:<seq2seq4repair_space>500px;display:<seq2seq4repair_space>block;'}}" ) ; if ( ! ( messageBean . getUser ( ) . equals ( prevUser ) ) ) { xwiki . append ( "{{div<seq2seq4repair_space>style='padding:<seq2seq4repair_space>4px;color:<seq2seq4repair_space>#CCC;margin:0;'}}" ) ; <START_BUG> xwiki . append ( ( ( ( ( "{{span<seq2seq4repair_space>style='float:<seq2seq4repair_space>left;<seq2seq4repair_space>display:<seq2seq4repair_space>inline-block;padding-right:<seq2seq4repair_space>10px;'}}<seq2seq4repair_space>[[image:" + serverBase ) + "//rest//jcr//repository//social//production//soc:providers//soc:organization//soc:" ) + ( messageBean . getUser ( ) ) ) + "//soc:profile//soc:avatar||width='30'<seq2seq4repair_space>height='30']]<seq2seq4repair_space>{{//span}}" ) ) ; <END_BUG> xwiki . append ( "{{span<seq2seq4repair_space>style='width:<seq2seq4repair_space>400px;display:<seq2seq4repair_space>inline-block;vertical-align:<seq2seq4repair_space>top;'}}" ) . append ( messageBean . getFullname ( ) ) . append ( "{{//span}}" ) ; xwiki . append ( "{{span<seq2seq4repair_space>style='font-size:<seq2seq4repair_space>smaller;vertical-align:<seq2seq4repair_space>top;'}}" ) . append ( messageBean . getDate ( ) ) . append ( "{{//span}}" ) ; xwiki . append ( "{{//div}}" ) ; } prevUser = messageBean . getUser ( ) ; xwiki . append ( "{{div<seq2seq4repair_space>style='padding:<seq2seq4repair_space>0<seq2seq4repair_space>4px;<seq2seq4repair_space>margin:0<seq2seq4repair_space>0<seq2seq4repair_space>0<seq2seq4repair_space>40px;vertical-align:<seq2seq4repair_space>top;'}}" ) . append ( messageBean . getMessage ( ) ) . append ( "{{//div}}" ) ; xwiki . append ( "{{//span}}" ) ; } return xwiki . toString ( ) ; } public String getAsHtml ( String title , Locale locale ) { } }

Fix:
xwiki . append ( ( ( ( ( "{{span<seq2seq4repair_space>style='float:<seq2seq4repair_space>left;<seq2seq4repair_space>display:<seq2seq4repair_space>inline-block;padding-right:<seq2seq4repair_space>10px;'}}<seq2seq4repair_space>[[image:" + serverBase ) + "//rest//chat//api//1.0//user//getAvatarURL//" ) + ( messageBean . getUser ( ) ) ) + "||width='30'<seq2seq4repair_space>height='30']]<seq2seq4repair_space>{{//span}}" ) ) ;