プロジェクト

全般

プロフィール

Vote #75837

完了

PDF Export removes separating space after tables

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
88
issue_org_id:
18629
author_id:
54354
assigned_to_id:
0
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
81
ステータス-->[Closed]

説明

With the switch to the new PDF gem, the space after tables are removed resulting in the element after a table displaying immediately under the table.

Please see attached screenshots.

@html.png@: this is what is displayed on the issue view.

@rbpdf.png@: This is what is generated by the new pdf parser.

@rbpdf-no-remove-trailing-multiple-spaces.png@: with the following change


# /usr/lib/ruby/gems/1.9.1/gems/rbpdf-1.18.2/lib/rbpdf.rb

-10667   html.gsub!(/<\/(table|tr|td|th|blockquote|dd|dl|div|dt|h1|h2|h3|h4|h5|h6|hr|li|ol|ul|p)>[\s]+<')
+10667   html.gsub!(/<\/(tr|td|th|blockquote|dd|dl|div|dt|h1|h2|h3|h4|h5|h6|hr|li|ol|ul|p)>[\s]+<')

@pdf-export-with-p-element.png@: with the following change


# lib/redmine/export/pdf.rb

+65   html.gsub!(/<\/table>/,'

')

journals

This problem already fixed by rbpdf 1.8.3.

please bundle update
<pre>
bundle update rbpdf
</pre>

!rbpdf-1.18.3.png!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Explicitly updated rbpdf version to 1.18.4 in trunk r13870 and 2.6-stable r13871, thanks.
--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリPDF export_39 にセット
  • 対象バージョン2.6.1_88 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0