Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Avoid trailing spaces on list
Slack Coder committed 3 years ago
commit 284aadc37c028087283f5a8b61fc5805979f506f
parent a6d59b3c0eeafe2d6fdff4b58e067c087c552a71
2 files changed +10 -4
modified radicle-cli/examples/rad-patch.md
@@ -53,12 +53,12 @@ It will now be listed as one of the project's open patches.
```
$ rad patch

-
 YOU PROPOSED
+
- YOU PROPOSED -

define power requirements 3b1f58414e5 R0 7939a9e (flux-capacitor-power) ahead 1, behind 0
└─ * opened by z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkEStBU8Vi (you) [..]

-
 OTHERS PROPOSED
+
- OTHERS PROPOSED -

Nothing to show.

modified radicle-cli/src/commands/patch/list.rs
@@ -39,7 +39,10 @@ pub fn run(
        }
    }
    term::blank();
-
    term::print(term::format::badge_positive("YOU PROPOSED"));
+
    term::print(format!(
+
        "-{}-",
+
        term::format::badge_secondary("YOU PROPOSED")
+
    ));

    if own.is_empty() {
        term::blank();
@@ -52,7 +55,10 @@ pub fn run(
        }
    }
    term::blank();
-
    term::print(term::format::badge_secondary("OTHERS PROPOSED"));
+
    term::print(format!(
+
        "-{}-",
+
        term::format::badge_secondary("OTHERS PROPOSED")
+
    ));

    if other.is_empty() {
        term::blank();