Skip to content

Commit

Permalink
Merge pull request #10175 from liang3zy22/bug12509
Browse files Browse the repository at this point in the history
Avoid parsing code comment twice
  • Loading branch information
lrytz committed Oct 7, 2022
2 parents 455e792 + d23620a commit cd52542
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -267,7 +267,7 @@ trait CommentFactoryBase { this: MemberLookupBase =>
case CodeBlockEndRegex(before, marker, after) :: ls =>
if (!before.trim.isEmpty && !after.trim.isEmpty)
parse0(docBody, tags, lastTagKey, before :: marker :: after :: ls, inCodeBlock = true)
if (!before.trim.isEmpty)
else if (!before.trim.isEmpty)
parse0(docBody, tags, lastTagKey, before :: marker :: ls, inCodeBlock = true)
else if (!after.trim.isEmpty)
parse0(docBody, tags, lastTagKey, marker :: after :: ls, inCodeBlock = false)
Expand Down

0 comments on commit cd52542

Please sign in to comment.