Actions
Defect #18629
closedPDF Export removes separating space after tables
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
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>/,'</table><p></p>')
Files
Actions