mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-30 20:23:14 +08:00
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:
commit
f92f65b74b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue