mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +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] || {}
|
style = elem[:style] || {}
|
||||||
# print heading if its heading
|
# print heading if its heading
|
||||||
# Mixing heading with other style setting causes problems for Word
|
# 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])
|
@docx.public_send(style[:style], elem[:value])
|
||||||
else
|
else
|
||||||
@docx.p elem[:value] do
|
@docx.p elem[:value] do
|
||||||
|
|
Loading…
Add table
Reference in a new issue