Aladdin - Scala Bugtracking
[#258] project: scala-doc priority: low category: bug
submitter assigned to status date submitted
Erik Vincent fixed 2003-12-09 16:04:05.0
subject White space should be significant in ScalaDoc comments
code
 /** 
  **  ...
  **  Example:<br>
  **  <pre>
  **    override def New(sz:Int,t:aNode):This {
  **      new C[T](order) {
  **        override def size=sz;
  **        override protected val tree:aNode=t;
  **      }
  **    }
  **  </pre>
  */
what happened
White spaces are droped, and the example is left justified:
override def New(sz:Int,t:aNode):This {
new C[T](order) {
override def size=sz;
override protected val tree:aNode=t;
}
}
what expected That ScalaDoc keeps white space in comments, so that the example is "nicely" formatted:
  override def New(sz:Int,t:aNode):This {
    new C[T](order) {
      override def size=sz;
      override protected val tree:aNode=t;
    }
  }
 
[back to overview]
Changes of this bug report
Erik  edited on  2003-12-09 16:04:49.0
Vincent  edited on  2004-01-15 15:57:36.0