Skip to content

Commit

Permalink
Merge pull request #176 from jugglerchris/support_pre_wrap2
Browse files Browse the repository at this point in the history
Fixes to pre-wrap handling.
  • Loading branch information
jugglerchris authored Oct 13, 2024
2 parents cf88565 + 44a50d9 commit df96233
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 232 deletions.
2 changes: 1 addition & 1 deletion src/css.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ impl StyleData {
styles: styles.clone(),
};
html_trace_quiet!("Adding ruleset {ruleset:?}");
rules.push(dbg!(ruleset));
rules.push(ruleset);
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ impl WhiteSpace {
WhiteSpace::Pre | WhiteSpace::PreWrap => true,
}
}
pub fn do_wrap(&self) -> bool {
match self {
WhiteSpace::Normal | WhiteSpace::PreWrap => true,
WhiteSpace::Pre => false,
}
}
}

/// An RGB colour value
Expand Down
Loading

0 comments on commit df96233

Please sign in to comment.