summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala
index 5c5b320c34..2159ee2a50 100644
--- a/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala
+++ b/src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala
@@ -324,9 +324,9 @@ trait CommentFactory { thisFactory: ModelFactory with CommentFactory =>
}
val indentation = countWhitespace
val indentStr = " " * indentation
- val style = listStyles.keysIterator.find( x => check(indentStr + x) )
- val constructor = listStyles(style.get)
- listLevel(indentStr, style.get, constructor)
+ val style = listStyles.keysIterator.find( x => check(indentStr + x) ).getOrElse(listStyles.keysIterator.next)
+ val constructor = listStyles(style)
+ listLevel(indentStr, style, constructor)
}
def code(): Block = {
jump("{{{")