Skip to content

Commit

Permalink
feat(format): only print - for links in alternate mode
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSpeitel committed Feb 15, 2024
1 parent fa3e138 commit 8ac0040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/format.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pub trait Format {
if let Some(key) = link.key() {
Self::fmt(f, key, state)?;
f.write_str(" -> ")?;
} else {
} else if f.alternate() {
f.write_str("- ")?;
}
Self::fmt(f, link.target(), state)
Expand Down

0 comments on commit 8ac0040

Please sign in to comment.