Skip to content

The Scaladoc {{{...}}} code block syntax isn’t working #11728

Closed
@alvinj

Description

@alvinj

Compiler version

3.0.0-RC1, as well as the latest nightly build

Minimized code

/**
  * Specify the `name`, `age`, and `weight` when creating a new `Person`,
  * then access the fields like this:
  *
  * {{{
  * val p = Person("Al", 42, 200.0)
  * p.name
  * p.age
  * p.weight
  * }}}
  *
class Person (var name: String, var age: Int, var weight: Double)

Output

The {{{...}}} text shows up in the Scaladoc, like this:

... the fields like this: {{{ val p = Person("Al", 42, 200.0) p.name p.age p.weight }}}

Expectation

I expected the code in the {{{...}}} block to be displayed as multiple lines of PRE/CODE text in the resulting Scaladoc, like this:

val p = Person("Al", 42, 200.0)
p.name
p.age
p.weight

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions