Writes a newline without setting the `needs_indenting` flag. TODO(cloutiertyler): I think it should set the flag, but I don't know if anyone is relying on the current behavior.
(&mut self)
| 61 | // TODO(cloutiertyler): I think it should set the flag, but I don't know |
| 62 | // if anyone is relying on the current behavior. |
| 63 | pub fn newline(&mut self) { |
| 64 | self.writer.write_char('\n').unwrap(); |
| 65 | } |
| 66 | |
| 67 | /// Print an indented block delimited by `before` and `after`, with body written by `f`. |
| 68 | pub fn delimited_block<Res>(&mut self, before: &str, f: impl FnOnce(&mut Self) -> Res, after: &str) -> Res { |
no test coverage detected