This commit is contained in:
+7
-3
@@ -10,9 +10,13 @@ fn print_content(content: Content) -> String {
|
||||
Content::List(l) => {
|
||||
ret.push_str("<ul class='content list'>");
|
||||
for item in l {
|
||||
ret.push_str("<li>");
|
||||
ret.push_str(&print_content(item));
|
||||
ret.push_str("</li>");
|
||||
if let Content::List(_) = item {
|
||||
ret.push_str(&print_content(item));
|
||||
} else {
|
||||
ret.push_str("<li>");
|
||||
ret.push_str(&print_content(item));
|
||||
ret.push_str("</li>");
|
||||
}
|
||||
}
|
||||
ret.push_str("</ul>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user