Indentation

laika.api.format.Formatter.Indentation
See theIndentation companion object
case class Indentation(currentLevel: Int, numSpaces: Int, dotted: Boolean)

Represents the current indentation level of a formatter instance.

Value parameters

currentLevel

the level of indentation (number of characters)

dotted

indicates whether the indentation happens with a dot pattern or with just whitespace

numSpaces

the number of space characters to add when creating the next level of indentation from this instance

Attributes

Companion
object
Source
Formatter.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val newLine: String

A string container the newline character and all characters needed for rendering the current level of indentation.

A string container the newline character and all characters needed for rendering the current level of indentation.

Attributes

Source
Formatter.scala

Creates a new instance with the indentation level increased by numCharacters.

Creates a new instance with the indentation level increased by numCharacters.

Attributes

Source
Formatter.scala