toRfc4880 method

String toRfc4880()

Convert to RFC 4880 format for decryption

See: https://www.rfc-editor.org/rfc/rfc4880#section-6.2

Implementation

//
// Indent finagling consistent with `org-crypt--encrypted-text`
String toRfc4880() =>
    toMarkup().trim().replaceAll(RegExp('^[ \t]*', multiLine: true), '');