Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you indent code block for scaladoc

I wrote a comment like this:

/** Blah blah blah.
  *
  * {{{
  * class MyAppServlet extends ControllerServlet {
  *   routes.publishWithReflection("/main", MainController)
  *   routes.publishWithReflection("/foo", FooController)
  * }
  * }}}
  *
  * Blah blah blah
  */

I want the code to indent, but here's what the generated HTML looks like:

enter image description here

Is this a bug, or ... ? I'm using Scala 2.11.0.

like image 576
Rob N Avatar asked Nov 10 '22 07:11

Rob N


1 Answers

Unfortunately there is a bug in the scaladoc generator which makes proper indenting not possible. The bug was found and is solved in pull request https://github.com/scala/scala/pull/3951. There may be no backport to Scala 2.10 though.

like image 172
Erik van Oosten Avatar answered Nov 14 '22 21:11

Erik van Oosten