Skip to content

Commit

Permalink
Fix: Remove redundant span elements in HTML body sections
Browse files Browse the repository at this point in the history
  • Loading branch information
jwaspin committed Feb 11, 2025
1 parent 3a9737f commit f9921c3
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions lib/adiwg/mdtranslator/writers/simple_html/sections/html_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ def writeHtml(version, intObj)
@html.div(:class => 'block') do
@html.em('Report Generated:')
@html.text!(Time.new.strftime('%Y-%m-%d %H:%M:%S'))
@html.text!(Time.new.strftime('%Y-%m-%d %H:%M:%S'))
end

# metadata source
Expand All @@ -124,7 +123,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Contacts', {'id' => 'body-contacts', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-contacts'})
@html.span('', {'style' => 'mso-bookmark:body-contacts'})
@html.div(:class => 'block') do
aContacts.each do |hContact|
@html.div(:class => 'block') do
Expand All @@ -143,7 +141,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Metadata Information', {'id' => 'body-metadataInfo', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-metadataInfo'})
@html.span('', {'style' => 'mso-bookmark:body-metadataInfo'})
@html.div(:class => 'block') do
@html.div(:class => 'block') do
metaInfoClass.writeHtml(hMetaInfo)
Expand All @@ -157,10 +154,8 @@ def writeHtml(version, intObj)
unless hResourceInfo.empty?
@html.div do
@html.h2('Resource Information', {'id' => 'body-resourceInfo', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-resourceInfo'})
@html.div(:class => 'block') do
@html.span('', {'style' => 'mso-bookmark:body-resourceInfo'})
@html.div(:class => 'block') do
@html.span('', {'style' => 'mso-bookmark:body-resourceInfo'})
@html.div(:class => 'block') do
resourceClass.writeHtml(hResourceInfo)
end
@html.hr
Expand All @@ -171,7 +166,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Data Quality', {'id' => 'body-dataQuality', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-dataQuality'})
@html.span('', {'style' => 'mso-bookmark:body-dataQuality'})
aDataQuality.each do |hDataQuality|
@html.div(:class => 'block') do
dataQualityClass.writeHtml(hDataQuality)
Expand All @@ -185,7 +179,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Resource Lineage', {'id' => 'body-lineage', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-lineage'})
@html.span('', {'style' => 'mso-bookmark:body-lineage'})
@html.div(:class => 'block') do
aLineage.each do |hLineage|
@html.div do
Expand All @@ -205,7 +198,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Resource Distribution', {'id' => 'body-distribution', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-distribution'})
@html.span('', {'style' => 'mso-bookmark:body-distribution'})
@html.div(:class => 'block') do
aDistribution.each do |hDistribution|
@html.div do
Expand All @@ -225,7 +217,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Associated Resources', {'id' => 'body-associatedResource', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-associatedResource'})
@html.span('', {'style' => 'mso-bookmark:body-associatedResource'})
@html.div(:class => 'block') do
aAssociated.each do |hAssociated|
@html.div do
Expand All @@ -245,7 +236,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Additional Documentation', {'id' => 'body-additionalDocument', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-additionalDocument'})
@html.span('', {'style' => 'mso-bookmark:body-additionalDocument'})
@html.div(:class => 'block') do
aAdditional.each do |hAdditional|
@html.div do
Expand All @@ -265,7 +255,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Data Dictionaries', {'id' => 'body-dataDictionary', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-dataDictionary'})
@html.span('', {'style' => 'mso-bookmark:body-dataDictionary'})
@html.div(:class => 'block') do
aDictionaries.each do |hDictionary|
@html.div do
Expand All @@ -284,7 +273,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Funding', {'id' => 'body-funding', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-funding'})
@html.span('', {'style' => 'mso-bookmark:body-funding'})
@html.div(:class => 'block') do
aFunding.each do |hFunding|
@html.div do
Expand All @@ -303,7 +291,6 @@ def writeHtml(version, intObj)
@html.div do
@html.h2('Metadata Repositories', {'id' => 'body-repository', 'class' => 'h2'})
@html.span('', {'style' => 'mso-bookmark:body-repository'})
@html.span('', {'style' => 'mso-bookmark:body-repository'})
@html.div(:class => 'block') do
aRepositories.each do |hRepository|
@html.div do
Expand Down

0 comments on commit f9921c3

Please sign in to comment.