Handle NOCVE and module traits

master
William Vu 2019-04-23 19:47:49 -05:00
parent 30b8625885
commit 372ec1949a
1 changed files with 6 additions and 0 deletions

View File

@ -683,9 +683,15 @@ class ReadableText
when 'AKA'
output << "Also known as:\n"
val.each { |aka| output << "#{indent}#{aka}\n" }
when 'NOCVE'
output << "CVE not available:\n" \
"#{indent}#{val}\n"
when 'RELATED'
output << "Related modules:\n"
val.each { |related| output << "#{indent}#{related}\n" }
when 'Stability', 'SideEffects', 'Reliability'
# Handled by dump_traits
next
else
# Display the raw note
output << "#{name}:\n" \