Merge pull request #2986 from aignatov-bio/ai-sci-5256-add-h6-render-to-docx-report

Add h6 render to docx report [SCI-5256]
This commit is contained in:
aignatov-bio 2020-11-30 10:22:49 +01:00 committed by GitHub
commit f92f65b74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ module Reports
style = elem[:style] || {}
# print heading if its heading
# Mixing heading with other style setting causes problems for Word
if %w(h1 h2 h3 h4 h5).include?(style[:style])
if %w(h1 h2 h3 h4 h5 h6).include?(style[:style])
@docx.public_send(style[:style], elem[:value])
else
@docx.p elem[:value] do