fix(cli): disable line wrap (#1445)

This commit is contained in:
Ariel
2025-03-01 04:27:52 +08:00
committed by GitHub
parent fbc6bb7b90
commit 633f628115

View File

@@ -334,7 +334,7 @@ fn print_markdown(content: &str, theme: Theme) {
.input(bat::Input::from_bytes(content.as_bytes()))
.theme(theme.as_str())
.language("Markdown")
.wrapping_mode(WrappingMode::Character)
.wrapping_mode(WrappingMode::NoWrapping(true))
.print()
.unwrap();
}