diff --git a/lib/thinreports/basic_report/generator/pdf.rb b/lib/thinreports/basic_report/generator/pdf.rb index 5a6d94c4..107da2ef 100644 --- a/lib/thinreports/basic_report/generator/pdf.rb +++ b/lib/thinreports/basic_report/generator/pdf.rb @@ -1,6 +1,9 @@ # frozen_string_literal: true require 'prawn' +require 'prawn/disable_word_break' + +Prawn::DisableWordBreak.config.default = false module Thinreports module BasicReport diff --git a/thinreports.gemspec b/thinreports.gemspec index 5f5d61b5..26d1e79c 100644 --- a/thinreports.gemspec +++ b/thinreports.gemspec @@ -23,5 +23,6 @@ Gem::Specification.new do |s| s.require_paths = ['lib'] s.add_dependency 'prawn', '>= 2.4.0' + s.add_dependency 'prawn-disable_word_break', '>= 2.3.1' s.add_dependency 'rexml' end