summaryrefslogtreecommitdiff
path: root/src/main/kotlin/moe/nea/blog/md/CodeBlock.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-03-24 16:34:16 +0100
committerLinnea Gräf <nea@nea.moe>2024-03-24 16:34:16 +0100
commit1cc009627643c6a3636472491825ae0d4a751616 (patch)
tree7efa4ad8bb93555f1f883ed337ca4b0071779b58 /src/main/kotlin/moe/nea/blog/md/CodeBlock.kt
parent306515545281007d1df8733e3aa2bee974e29123 (diff)
downloadblog-infra-1cc009627643c6a3636472491825ae0d4a751616.tar.gz
blog-infra-1cc009627643c6a3636472491825ae0d4a751616.tar.bz2
blog-infra-1cc009627643c6a3636472491825ae0d4a751616.zip
Add code block test
Diffstat (limited to 'src/main/kotlin/moe/nea/blog/md/CodeBlock.kt')
-rw-r--r--src/main/kotlin/moe/nea/blog/md/CodeBlock.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/blog/md/CodeBlock.kt b/src/main/kotlin/moe/nea/blog/md/CodeBlock.kt
index 2882b77..4251001 100644
--- a/src/main/kotlin/moe/nea/blog/md/CodeBlock.kt
+++ b/src/main/kotlin/moe/nea/blog/md/CodeBlock.kt
@@ -6,7 +6,7 @@ import java.io.PrintStream
data class CodeBlock(val language: String, val lines: List<String>) : MarkdownBlock {
override fun debugFormat(indent: Int, printStream: PrintStream) {
printStream.indent(indent)
- printStream.println("<code lang=$language>")
+ printStream.println("<code language=$language>")
lines.forEach {
printStream.indent(indent)
printStream.println(it)