-use std::borrow::Cow;
use crate::print::pp::Printer;
+use std::borrow::Cow;
impl Printer {
pub fn word_space<W: Into<Cow<'static, str>>>(&mut self, w: W) {
}
pub fn space_if_not_bol(&mut self) {
- if !self.is_beginning_of_line() { self.space(); }
+ if !self.is_beginning_of_line() {
+ self.space();
+ }
}
- pub fn nbsp(&mut self) { self.word(" ") }
+ pub fn nbsp(&mut self) {
+ self.word(" ")
+ }
pub fn word_nbsp<S: Into<Cow<'static, str>>>(&mut self, w: S) {
self.word(w);