opgpcard: re-add newlines in text output for 'ssh'

This commit is contained in:
Heiko Schaefer 2022-10-31 15:31:31 +01:00
parent 001bbd4412
commit 7fe693ab98
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -27,10 +27,10 @@ impl Ssh {
}
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 {
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 {
s.push_str(&format!("SSH public key:\n{}\n", key));