From 8245f18076a32d86b59223334964cd9471e3d9a2 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Fri, 27 Nov 2020 13:33:44 +0100 Subject: [PATCH] Add h6 render to docx report --- app/services/reports/html_to_word_converter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/reports/html_to_word_converter.rb b/app/services/reports/html_to_word_converter.rb index b4ccc55cb..e05862f7f 100644 --- a/app/services/reports/html_to_word_converter.rb +++ b/app/services/reports/html_to_word_converter.rb @@ -25,7 +25,7 @@ module Reports style = elem[:style] || {} # print heading if its heading # 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]) else @docx.p elem[:value] do