lib/adiwg/mdtranslator/writers/html/sections/html_gridRepresentation.rb in adiwg-mdtranslator-2.3.4 vs lib/adiwg/mdtranslator/writers/html/sections/html_gridRepresentation.rb in adiwg-mdtranslator-2.3.5
- old
+ new
@@ -22,13 +22,15 @@
# classes used
dimensionClass = Html_Dimension.new(@html)
# grid representation - number of dimensions
- @html.em('Number of dimensions: ')
- @html.text!(hGrid[:numberOfDimensions].to_s)
- @html.br
+ unless hGrid[:numberOfDimensions].nil?
+ @html.em('Number of dimensions: ')
+ @html.text!(hGrid[:numberOfDimensions].to_s)
+ @html.br
+ end
# grid representation - dimension []
dimensionCount = 0
hGrid[:dimension].each do |hDimension|
dimensionCount += 1
@@ -46,10 +48,10 @@
@html.em('Cell Geometry: ')
@html.text!(hGrid[:cellGeometry])
@html.br
end
- # grid representation - transformation parameters available
+ # grid representation - transformation parameters available {Boolean}
@html.em('Transformation parameters available: ')
@html.text!(hGrid[:transformationParameterAvailable].to_s)
end # writeHtml
end # Html_GridRepresentation