lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb in adiwg-mdtranslator-2.13.3 vs lib/adiwg/mdtranslator/writers/html/sections/html_resourceInfo.rb in adiwg-mdtranslator-2.14.0
- old
+ new
@@ -1,9 +1,10 @@
# HTML writer
# resource information
# History:
+# Stan Smith 2018-10-17 refactor for mdJson schema 2.6.0
# Stan Smith 2018-04-06 changed taxonomy to an array
# Stan Smith 2017-05-19 removed iso topicCategory (now presented as keywords)
# Stan Smith 2017-03-25 refactored for mdTranslator 2.0
# Stan Smith 2015-07-16 refactored to remove global namespace $HtmlNS
# Stan Smith 2015-03-24 original script
@@ -89,21 +90,24 @@
@html.section(:class => 'block') do
# short abstract
unless hResource[:shortAbstract].nil?
@html.em('Short Abstract:')
+ @html.section(:class => 'block') do
+ @html.text!(hResource[:shortAbstract])
+ end
@html.br
- @html.text!(hResource[:shortAbstract])
- @html.br
- @html.br
end
# full abstract
unless hResource[:abstract].nil?
@html.em('Full Abstract:')
+ @html.section(:class => 'block') do
+ @html.text!(hResource[:abstract])
+ end
@html.br
- @html.text!(hResource[:abstract])
+
end
end
end
end
@@ -115,11 +119,12 @@
@html.section(:class => 'block') do
# purpose
unless hResource[:purpose].nil?
@html.em('Purpose:')
- @html.br
- @html.text!(hResource[:purpose])
+ @html.section(:class => 'block') do
+ @html.text!(hResource[:purpose])
+ end
@html.br
end
# usage and limitation
unless hResource[:resourceUsages].empty?