9c62af746c820c21369de6ea8f1935ecda00bbc7
[sixth.git] / src / main / java / eu / svjatoslav / sixth / core / document / content / Verse.java
1 package eu.svjatoslav.sixth.core.document.content;
2
3 import eu.svjatoslav.commons.string.String2;
4
5 public class Verse implements Content {
6     public final String verse;
7
8     public Verse(String verse) {
9         this.verse = verse;
10     }
11
12     @Override
13     public void toMD(StringBuilder sb, int indent) {
14         String2 s = new String2();
15         s.append(" ", indent).append("```\n");
16         // TODO: ensure that required indent is present
17         s.append(verse + "\n");
18         s.append(" ", indent).append("```\n");
19         sb.append(s.toString());
20     }
21 }