Fix for the formatting issues with bullet points for exported docx plans
when viewed in an old Word editor.

The fix follows the solution suggested in  the HtmlToWord bug "List item
bullets corrupted in Microsoft Word"
https://github.com/karnov/htmltoword/issues/73 suggested by David
Verhasselt @dv.

Changes:
   - Firstly, removed earlier attempted fix in commit
     5ef7e05 (Fix for format issues for
     bullet points in Plan docx exports).
   - Made a copy of Htmltoword (1.1.0) xslt stylesheets functions.xslt
     and numbering.xslt and made changes suggested by https://github.com/karnov/htmltoword/issues/73
   - Prepended the Htmltoword library XSLTHelper method xslt_path() in
     config/initializers/htmlto_word_xslt_helper.rb. This method ensures
     the Htmltoword library picks up the changed  numbering.xslt template instead of
     the library's version.
   - pinned version of htmltoword to 1.1.0

Fix for issue #2147.
dev
1 parent 58e9f21 commit e4fe19586e98140fae4f01b5b90c6eea5b1454f4
@John Pinto John Pinto authored on 23 Oct 2019
Showing 6 changed files
View
Gemfile
View
Gemfile.lock
View
app/assets/xslt/htmltoword/functions.xslt 0 → 100644
View
app/assets/xslt/htmltoword/numbering.xslt 0 → 100644
View
app/views/shared/export/_plan.erb
View
config/initializers/htmlto_word_xslt_helper.rb 0 → 100644