mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-09 13:46:21 +08:00
Fix superscript and subscript in docx report generator [SCI-7141]
This commit is contained in:
parent
922652417a
commit
57c5947d91
2 changed files with 3 additions and 3 deletions
|
|
@ -14,11 +14,11 @@ module Reports
|
|||
elsif text_el[:type] == 'a'
|
||||
Reports::DocxRenderer.render_link_element(self, text_el, options)
|
||||
elsif text_el[:type] == 'sup'
|
||||
text text_el[:value] do
|
||||
text text_el[:value] do
|
||||
vertical_align 'superscript'
|
||||
end
|
||||
elsif text_el[:type] == 'sub'
|
||||
text text_el[:value] do
|
||||
text text_el[:value] do
|
||||
vertical_align 'subscript'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ module Reports
|
|||
end
|
||||
|
||||
if elem.name == 'sub'
|
||||
elements.push(sub_element(elem))
|
||||
elements.push(sub_element(elem))
|
||||
next
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue