OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
feat(overview table): workaround bad prawn-table text cell breaking by char of small columns
as-op483937a14839
diff --git a/Gemfile b/Gemfileindex c4cc0f2212c..aaa57fd4454 100644--- a/Gemfile+++ b/Gemfile@@ -151,12 +151,9 @@ gem 'structured_warnings', '~> 0.4.0'# don't require by default, instead load on-demand when actually configuredgem 'airbrake', '~> 13.0.0', require: false-gem "hexapdf", "~> 0.32.0"+gem "hexapdf", "~> 0.32"gem 'prawn', '~> 2.2'-gem 'prawn-markup', '~> 0.3.0'-gem 'md_to_pdf', git: 'https://github.com/opf/md-to-pdf', ref: '875c4626a06321adefb479f381097ff69d408952'-# prawn implicitly depends on matrix gem no longer in ruby core with 3.1-gem 'matrix', '~> 0.4.2'+gem 'md_to_pdf', git: 'https://github.com/opf/md-to-pdf', ref: '4337f5d2b9601f8ab726576200bcfb2066417fc0'gem 'cells-erb', '~> 0.1.0'gem 'cells-rails', '~> 0.1.4'diff --git a/Gemfile.lock b/Gemfile.lockindex 7f7e9f8e84c..f7221b79131 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -1,7 +1,7 @@GITremote: https://github.com/opf/md-to-pdf- revision: 875c4626a06321adefb479f381097ff69d408952- ref: 875c4626a06321adefb479f381097ff69d408952+ revision: 4337f5d2b9601f8ab726576200bcfb2066417fc0+ ref: 4337f5d2b9601f8ab726576200bcfb2066417fc0specs:md_to_pdf (0.0.15)commonmarker (~> 0.23)@@ -689,10 +689,6 @@ GEMprawn (2.4.0)pdf-core (~> 0.9.0)ttfunk (~> 1.7)- prawn-markup (0.3.7)- nokogiri- prawn- prawn-tableprawn-table (0.2.2)prawn (>= 1.3.0, < 3.0.0)pry (0.14.2)@@ -1045,7 +1041,7 @@ DEPENDENCIESgrape (~> 1.7.0)grape_logging (~> 1.8.4)grids!- hexapdf (~> 0.32.0)+ hexapdf (~> 0.32)html-pipeline (~> 2.14.0)htmldiffi18n-js (~> 3.9.0)@@ -1059,7 +1055,6 @@ DEPENDENCIESlivingstyleguide (~> 2.1.0)lograge (~> 0.12.0)mail (>= 2.8.1)- matrix (~> 0.4.2)md_to_pdf!meta-tags (~> 2.18.0)mini_magick (~> 4.12.0)@@ -1102,7 +1097,6 @@ DEPENDENCIESplaintext (~> 0.3.2)posix-spawn (~> 0.3.13)prawn (~> 2.2)- prawn-markup (~> 0.3.0)pry-byebug (~> 3.10.0)pry-rails (~> 0.3.6)pry-rescue (~> 1.5.2)diff --git a/app/models/work_package/pdf_export/common.rb b/app/models/work_package/pdf_export/common.rbindex a0170bd0477..16c9a726aba 100644--- a/app/models/work_package/pdf_export/common.rb+++ b/app/models/work_package/pdf_export/common.rb@@ -103,7 +103,7 @@ module WorkPackage::PDFExport::Commondef get_id_column_cell(work_package, value)href = url_helpers.work_package_url(work_package)- make_link_href_cell(href, value) + Prawn::Text::NBSP+ make_link_href_cell(href, value)enddef get_subject_column_cell(work_package, value)