Fix superscript and subscript in docx report generator [SCI-7141]

This commit is contained in:
Giga Chubinidze 2022-09-01 10:49:17 +04:00
parent 922652417a
commit 57c5947d91
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -112,7 +112,7 @@ module Reports
end
if elem.name == 'sub'
elements.push(sub_element(elem))
elements.push(sub_element(elem))
next
end