Просмотр исходного кода

Remove one last newline from help output

Benjamin Sago 8 лет назад
Родитель
Сommit
4e32b7fca9
3 измененных файлов с 3 добавлено и 6 удалено
  1. 3 4
      src/options/help.rs
  2. 0 1
      xtests/help
  3. 0 1
      xtests/help_long

+ 3 - 4
src/options/help.rs

@@ -40,8 +40,7 @@ LONG VIEW OPTIONS
   -S, --blocks       show number of file system blocks
   -t, --time FIELD   which timestamp field to list (modified, accessed, created)
   -u, --accessed     use the accessed timestamp field
-  -U, --created      use the created timestamp field
-"##;
+  -U, --created      use the created timestamp field"##;
 
 static GIT_HELP:      &str = r##"  --git              list each file's Git status, if tracked"##;
 static EXTENDED_HELP: &str = r##"  -@, --extended     list each file's extended attributes and sizes"##;
@@ -57,13 +56,13 @@ pub fn help_string(matches: &Matches, git: bool, xattr: bool) -> String {
     help.push_str(LONG_OPTIONS);
 
     if git {
-        help.push_str(GIT_HELP);
         help.push('\n');
+        help.push_str(GIT_HELP);
     }
 
     if xattr {
-        help.push_str(EXTENDED_HELP);
         help.push('\n');
+        help.push_str(EXTENDED_HELP);
     }
 
     help

+ 0 - 1
xtests/help

@@ -40,4 +40,3 @@ LONG VIEW OPTIONS
   -U, --created      use the created timestamp field
   --git              list each file's Git status, if tracked
   -@, --extended     list each file's extended attributes and sizes
-

+ 0 - 1
xtests/help_long

@@ -16,4 +16,3 @@ LONG VIEW OPTIONS
   -U, --created      use the created timestamp field
   --git              list each file's Git status, if tracked
   -@, --extended     list each file's extended attributes and sizes
-