diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-03-30 18:37:25 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2010-03-30 18:37:25 +0000 |
commit | 0e7403eea2e7082a255ad258c8d2a38c6156f476 (patch) | |
tree | 50254c2b786385b0719e5e72d29e8ef0cd6caaff /src | |
parent | f0624e1937f258af408faf32293ad2af3f94fb6e (diff) | |
download | scala-0e7403eea2e7082a255ad258c8d2a38c6156f476.tar.gz scala-0e7403eea2e7082a255ad258c8d2a38c6156f476.tar.bz2 scala-0e7403eea2e7082a255ad258c8d2a38c6156f476.zip |
[scaladoc] Fixed the nightly build.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/doc/model/comment/CommentFactory.scala | 6 |
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("{{{") |