Vote #75837
完了PDF Export removes separating space after tables
0%
説明
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]+, '\\1><')
+10667 html.gsub!(/<\/(tr|td|th|blockquote|dd|dl|div|dt|h1|h2|h3|h4|h5|h6|hr|li|ol|ul|p)>[\s]+, '\\1><')
@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.
--------------------------------------------------------------------------------