summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-07-01 13:49:21 -0400
committerDan Davison <dandavison7@gmail.com>2020-07-01 13:58:04 -0400
commit56c883f9aae04a48845a3a64e255ec4dae51e1ff (patch)
tree0b02088882c49b24b9a5412e93d0f5144427b5ba
parent917ae8fae9f2d0c109a3fcff498ea6cab31b3c85 (diff)
Remove space in default line number format string0.2.0
-rw-r--r--src/cli.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli.rs b/src/cli.rs
index bfe0a395..33f33651 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -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