mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-03 18:35:36 +08:00
Fix empty elements in docx rtf table [SCI-5659] (#3382)
This commit is contained in:
parent
04155f5d60
commit
0e87c44c4f
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ module Reports
|
|||
elements = []
|
||||
temp_p = []
|
||||
raw_elements.each do |elem|
|
||||
next unless elem
|
||||
|
||||
if %w(image newline table ol ul).include? elem[:type]
|
||||
unless temp_p.empty?
|
||||
elements.push(type: 'p', children: temp_p)
|
||||
|
|
Loading…
Add table
Reference in a new issue