@@ -228,13 +228,19 @@ - (NSArray *)parseHeader:(NSString *)text
228
228
- (NSString *)htmlForHeader : (NSArray *)header withRefs : (NSString *)badges
229
229
{
230
230
NSString *last_mail = @" " ;
231
+ NSMutableString *subjectFirst = [NSMutableString string ];
231
232
NSMutableString *auths=[NSMutableString string ];
232
233
NSMutableString *refs=[NSMutableString string ];
233
234
NSMutableString *subject=[NSMutableString string ];
234
235
235
236
for (NSDictionary *item in header) {
236
237
if ([[item objectForKey: kHeaderKeyName ] isEqualToString: @" subject" ]) {
237
- [subject appendString: [NSString stringWithFormat: @" %@ <br/>" ,[GLFileView escapeHTML: [item objectForKey: kHeaderKeyContent ]]]];
238
+ if ([subjectFirst isEqualToString: @" " ]) {
239
+ [subjectFirst appendString: [NSString stringWithFormat: @" %@ " ,[GLFileView escapeHTML: [item objectForKey: kHeaderKeyContent ]]]];
240
+ } else {
241
+ [subject appendString: [NSString stringWithFormat: @" %@ <br/>" ,[GLFileView escapeHTML: [item objectForKey: kHeaderKeyContent ]]]];
242
+ }
243
+
238
244
}else {
239
245
if ([[item objectForKey: kHeaderKeyContent ] isKindOfClass: [NSString class ]]){
240
246
[refs appendString: [NSString stringWithFormat: @" <tr><td>%@ </td><td><a href='' onclick='selectCommit(this.innerHTML); return false;'>%@ </a></td></tr>" ,[item objectForKey: kHeaderKeyName ],[item objectForKey: kHeaderKeyContent ]]];
@@ -263,7 +269,7 @@ - (NSString *)htmlForHeader:(NSArray *)header withRefs:(NSString *)badges
263
269
}
264
270
}
265
271
266
- return [NSString stringWithFormat: @" <div id='header' class='clearfix'><table class='references'>%@ </table><p class='subject'>%@ </p>%@ <div id='badges'>%@ </div></div>" ,refs,subject ,auths,badges];
272
+ return [NSString stringWithFormat: @" <div id='header' class='clearfix'><table class='references'>%@ </table><p class='subject'>%@ </p>%@ <div id='badges'>%@ </div></div><p> %@ </p> " ,refs,subjectFirst ,auths,badges,subject ];
267
273
}
268
274
269
275
- (NSString *) arbitraryHashForString : (NSString *)concat {
0 commit comments