Skip to content

Commit c42d58c

Browse files
committed
fix(toc): tags are not rendered properly
1 parent 9b649cd commit c42d58c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vimdoc.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ impl Visitor for VimDoc {
302302
if let Node::Module(x) = nod {
303303
let desc = x.desc.as_deref().unwrap_or_default();
304304
doc.push_str(&format!(
305-
"{desc}{:·>w$}\n",
306-
format!("|{}|", x.name),
307-
w = 80 - desc.len()
305+
"{desc} {:·>w$}\n",
306+
format!(" |{}|", x.name),
307+
w = (TW - 1) - desc.len()
308308
));
309309
}
310310
}

0 commit comments

Comments
 (0)