Attr_ affiliated keywords should be lists of strings.

This commit is contained in:
Tom Alexander 2023-10-16 12:55:18 -04:00
parent 0aa746fb1e
commit 911634cb42
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -151,7 +151,8 @@ fn identify_keyword_type<'g, 's>(
) -> AffiliatedKeywordType { ) -> AffiliatedKeywordType {
let is_multiple = ["CAPTION", "HEADER"] let is_multiple = ["CAPTION", "HEADER"]
.into_iter() .into_iter()
.any(|candidate| name.eq_ignore_ascii_case(candidate)); .any(|candidate| name.eq_ignore_ascii_case(candidate))
|| name.to_lowercase().starts_with("attr_");
let is_parsed = global_settings let is_parsed = global_settings
.element_parsed_keywords .element_parsed_keywords
.iter() .iter()