summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/generate_html.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generate_html.rs b/src/generate_html.rs
index daa83d5..3b6ee62 100644
--- a/src/generate_html.rs
+++ b/src/generate_html.rs
@@ -212,8 +212,8 @@ pub fn document_to_html(page: &Page, website: &Website) -> String {
depth += 1;
} else if c == '/' && prev == '<' {
depth -= 2; // 2 because prev was a '<' as well.
- } else if c == ':' && depth == 0 {
- output.pop(); output.push_str("<br>");
+ } else if c == ' ' && prev == ':' && depth == 0 {
+ output.pop(); output.pop(); output.push_str("<br>");
class.push_str("extended"); depth += 99;
}
prev = c;