Skip to content

Commit

Permalink
Fixed discussion handling - broke as part of 3f0d4c7. Fixes #272.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaz committed Nov 5, 2012
1 parent a60e74b commit 3d23114
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Processing/GBCommentsProcessor.m
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,11 @@ - (void)processCommentBlockInLines:(NSArray *)lines blockRange:(NSRange)blockRan
NSString *blockString = [self stringByCombiningTrimmedLines:blockLines];
if ([blockString length] == 0) return;

// Process the string and register long description component.
//GBCommentComponent *component = [self commentComponentByPreprocessingString:blockString withFlags:0];

//[self.currentComment.longDescription registerComponent:component];
// Process the string and register long description component. If discussion is already registered (i.e. from @discussion directive), ignore it.
if (self.currentComment.longDescription.components.count == 0) {
GBCommentComponent *component = [self commentComponentByPreprocessingString:blockString withFlags:0];
[self.currentComment.longDescription registerComponent:component];
}
}

- (void)registerShortDescriptionFromLines:(NSArray *)lines range:(NSRange)range removePrefix:(NSString *)remove {
Expand Down Expand Up @@ -437,7 +438,7 @@ - (BOOL)processAbstractBlockInString:(NSString *)string lines:(NSArray *)lines b
index = [description rangeOfString:@"@discussion"];

if (index.location == NSNotFound) {
index = [description rangeOfString:@"\s+"];
index = [description rangeOfRegex:@"\\s+"];
}

NSRange range;
Expand Down

0 comments on commit 3d23114

Please sign in to comment.