mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
dc8b147282
* Add handson table metadata to reports [SCI-7835] * Fix step table loading for empty metadata [SCI-7835]
19 lines
380 B
Ruby
19 lines
380 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Reports
|
|
class Docx
|
|
module TableHelper
|
|
def table_cell_alignment(cell_class)
|
|
if cell_class.include?('htCenter')
|
|
:center
|
|
elsif cell_class.include?('htRight')
|
|
:right
|
|
elsif cell_class.include?('htJustify')
|
|
:both
|
|
else
|
|
:left
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|