Apply the link templates.

This commit is contained in:
Tom Alexander
2023-10-06 22:08:26 -04:00
parent 2ba5156ee1
commit 4c8828b91b
8 changed files with 203 additions and 32 deletions

View File

@@ -2771,13 +2771,13 @@ fn compare_regular_link<'b, 's>(
(
EmacsField::Required(":type"),
|r| {
match r.link_type {
LinkType::File => Some("file"),
LinkType::Protocol(protocol) => Some(protocol),
LinkType::Id => Some("id"),
LinkType::CustomId => Some("custom-id"),
LinkType::CodeRef => Some("coderef"),
LinkType::Fuzzy => Some("fuzzy"),
match &r.link_type {
LinkType::File => Some(Cow::Borrowed("file")),
LinkType::Protocol(protocol) => Some(protocol.clone()),
LinkType::Id => Some(Cow::Borrowed("id")),
LinkType::CustomId => Some(Cow::Borrowed("custom-id")),
LinkType::CodeRef => Some(Cow::Borrowed("coderef")),
LinkType::Fuzzy => Some(Cow::Borrowed("fuzzy")),
}
},
compare_property_quoted_string