diff options
author | Dan Davison <dandavison7@gmail.com> | 2020-07-01 13:49:21 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2020-07-01 13:58:04 -0400 |
commit | 56c883f9aae04a48845a3a64e255ec4dae51e1ff (patch) | |
tree | 0b02088882c49b24b9a5412e93d0f5144427b5ba | |
parent | 917ae8fae9f2d0c109a3fcff498ea6cab31b3c85 (diff) |
Remove space in default line number format string0.2.0
-rw-r--r-- | src/cli.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -186,9 +186,9 @@ For example, the default value of --line-numbers-left-format is '{nm:^4}⋮'. Th left column should display the minus line number (nm), center-aligned, padded with spaces to a width of 4 characters, followed by a unicode dividing-line character (⋮). -Similarly, the default value of --line-numbers-right-format is '{np:^4}│ '. This means that the +Similarly, the default value of --line-numbers-right-format is '{np:^4}│'. This means that the right column should display the plus line number (np), center-aligned, padded with spaces to a -width of 4 characters, followed by a unicode dividing-line character (│), and a space. +width of 4 characters, followed by a unicode dividing-line character (│). Use '<' for left-align, '^' for center-align, and '>' for right-align. @@ -376,7 +376,7 @@ pub struct Opt { /// Format string for the right column of line numbers. A typical value would be "{np:^4}│ " /// which means to display the line numbers of the plus file (new version), followed by a /// dividing character, and a space. See the LINE NUMBERS section. - #[structopt(long = "line-numbers-right-format", default_value = "{np:^4}│ ")] + #[structopt(long = "line-numbers-right-format", default_value = "{np:^4}│")] pub line_numbers_right_format: String, /// Style (foreground, background, attributes) for the left column of line numbers. See STYLES |