summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/blog/md/FormatSequence.kt
blob: 94b55b98415f0aa609ce697971464ca9d1745b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
package moe.nea.blog.md

import java.io.PrintStream

data class FormatSequence(val list: List<MarkdownFormat>) : MarkdownFormat {
    constructor(vararg list: MarkdownFormat) : this(list.toList())

    override fun debugFormat(printStream: PrintStream) {
        list.forEach { it.debugFormat(printStream) }
    }
}