Return the line number padding beginning at the start of each line of the pattern. If the pattern is only one line, then this returns a fixed padding for visual indentation.
(&self)
| 271 | /// If the pattern is only one line, then this returns a fixed padding |
| 272 | /// for visual indentation. |
| 273 | fn line_number_padding(&self) -> usize { |
| 274 | if self.line_number_width == 0 { |
| 275 | 4 |
| 276 | } else { |
| 277 | 2 + self.line_number_width |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | fn repeat_char(c: char, count: usize) -> String { |