opgpcard: re-add newlines in text output for 'ssh'
This commit is contained in:
parent
001bbd4412
commit
7fe693ab98
1 changed files with 2 additions and 2 deletions
|
@ -27,10 +27,10 @@ impl Ssh {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn text(&self) -> Result<String, OpgpCardError> {
|
fn text(&self) -> Result<String, OpgpCardError> {
|
||||||
let mut s = format!("OpenPGP card {}\n", self.ident);
|
let mut s = format!("OpenPGP card {}\n\n", self.ident);
|
||||||
|
|
||||||
if let Some(fp) = &self.authentication_key_fingerprint {
|
if let Some(fp) = &self.authentication_key_fingerprint {
|
||||||
s.push_str(&format!("Authentication key fingerprint:\n{}\n", fp));
|
s.push_str(&format!("Authentication key fingerprint:\n{}\n\n", fp));
|
||||||
}
|
}
|
||||||
if let Some(key) = &self.ssh_public_key {
|
if let Some(key) = &self.ssh_public_key {
|
||||||
s.push_str(&format!("SSH public key:\n{}\n", key));
|
s.push_str(&format!("SSH public key:\n{}\n", key));
|
||||||
|
|
Loading…
Reference in a new issue