@@ -35,13 +35,13 @@ object Preparser {
35
35
inCodeBlock : Boolean
36
36
): PreparsedComment = remaining match {
37
37
case CodeBlockStartRegex (before, marker, after) :: ls if ! inCodeBlock =>
38
- if (before.trim.nonEmpty && after.trim.nonEmpty && marker == " ```" )
38
+ if (! before.trim.isEmpty && ! after.trim.isEmpty && marker == " ```" )
39
39
go(docBody, tags, lastTagKey, before :: (marker + after) :: ls, inCodeBlock = false )
40
- else if (before.trim.nonEmpty && after.trim.nonEmpty )
40
+ else if (! before.trim.isEmpty && ! after.trim.isEmpty )
41
41
go(docBody, tags, lastTagKey, before :: marker :: after :: ls, inCodeBlock = false )
42
- else if (before.trim.nonEmpty )
42
+ else if (! before.trim.isEmpty )
43
43
go(docBody, tags, lastTagKey, before :: marker :: ls, inCodeBlock = false )
44
- else if (after.trim.nonEmpty && marker != " ```" )
44
+ else if (! after.trim.isEmpty && marker != " ```" )
45
45
go(docBody, tags, lastTagKey, marker :: after :: ls, inCodeBlock = true )
46
46
else lastTagKey match {
47
47
case Some (key) =>
@@ -56,11 +56,11 @@ object Preparser {
56
56
}
57
57
58
58
case CodeBlockEndRegex (before, marker, after) :: ls =>
59
- if (before.trim.nonEmpty && after.trim.nonEmpty )
59
+ if (! before.trim.isEmpty && ! after.trim.isEmpty )
60
60
go(docBody, tags, lastTagKey, before :: marker :: after :: ls, inCodeBlock = true )
61
- if (before.trim.nonEmpty )
61
+ if (! before.trim.isEmpty )
62
62
go(docBody, tags, lastTagKey, before :: marker :: ls, inCodeBlock = true )
63
- else if (after.trim.nonEmpty )
63
+ else if (! after.trim.isEmpty )
64
64
go(docBody, tags, lastTagKey, marker :: after :: ls, inCodeBlock = false )
65
65
else lastTagKey match {
66
66
case Some (key) =>
0 commit comments