Fixing builds and workflows

This commit is contained in:
2026-01-31 17:52:44 +01:00
parent 971f40813f
commit 92d80d1dfe
5 changed files with 24 additions and 13 deletions

View File

@@ -265,7 +265,7 @@ fn wrapped_line_count(line: &RLine, width: usize) -> usize {
if char_count == 0 || width == 0 {
1
} else {
(char_count + width - 1) / width
char_count.div_ceil(width)
}
}
@@ -392,9 +392,9 @@ fn preprocess_markdown(md: &str) -> String {
fn convert_dash_lists(line: &str) -> String {
let trimmed = line.trim_start();
if trimmed.starts_with("- ") {
if let Some(rest) = trimmed.strip_prefix("- ") {
let indent = line.len() - trimmed.len();
format!("{}* {}", " ".repeat(indent), &trimmed[2..])
format!("{}* {}", " ".repeat(indent), rest)
} else {
line.to_string()
}
@@ -487,7 +487,7 @@ fn render_table_row(row: TableRow, row_idx: usize, col_widths: &[usize]) -> RLin
let is_header = row_idx == 0;
let bg = if is_header {
theme.ui.surface
} else if row_idx % 2 == 0 {
} else if row_idx.is_multiple_of(2) {
theme.table.row_even
} else {
theme.table.row_odd