Permalink
Browse files

new line after pragma

  • Loading branch information...
1 parent 73157b3 commit 2a8efc4c0a279b67ce4a892999dce4eeadb68364 @JPMoresmau committed Dec 11, 2012
@@ -287,8 +287,13 @@ private boolean addFlagPragma(final List<IMarkerResolution> res,final String msg
s=s.substring( s.length()-3 );
}
int start=ix+1+s.length();
- int ix2=msg.indexOf( ' ',start);
- if (ix2>-1){
+ int ix2=start;
+ for (;ix2<msg.length();ix2++){
+ if (Character.isWhitespace( msg.charAt( ix2 ) )){
+ break;
+ }
+ }
+ if (ix2<msg.length()){
String flag=msg.substring( start,ix2 ).trim();
addPragma(res,flag);
} else {

0 comments on commit 2a8efc4

Please sign in to comment.