Project

General

Profile

Actions

Defect #11987

closed

pdf: Broken new line in table

Added by Olivier Pinette over 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
PDF export
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Advanced tables format, with merged of several cells, produce mix cells value in the exported PDF.

To reproduce please consider the flowing sample table, fill in a wiki page, then export to PDF (my export is attached)

|_.UserID     |_.Name|_.Group|_. attribute list  |
|Starting with| a    |   simple|row |
|\3=.IT               |<. align left|
|1|Artur Pirozhkov |/2.Users |>. align right|
|2|Vasya Rogov        |=. center |
|3|John Smith |Admin
               (root)|^. valign top |
|4|-          |Nobody
               (anonymous)|~. valign bottom|

About your application's environment
  • Ruby version 1.9.3 (x86_64-linux)
  • RubyGems version 1.8.24
  • Rack version 1.4
  • Rails version 3.2.8
  • Active Record version 3.2.8
  • Action Pack version 3.2.8
  • Active Resource version 3.2.8
  • Action Mailer version 3.2.8
  • Active Support version 3.2.8
  • Middleware Rack::Cache, ActionDispatch::Static, Rack::Lock, #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x000000011f56e8>, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::RemoteIp, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, RedmineDmsf::NoParse, ActionDispatch::ParamsParser, ActionDispatch::Head, Rack::ConditionalGet, Rack::ETag, ActionDispatch::BestStandardsSupport, OpenIdAuthentication
  • Application root /var/www/redmine-2.1.0
  • Environment production
  • Database adapter mysql2
  • Database schema version 20120731164049 *

Files

Test.pdf (310 KB) Test.pdf Result of the PDF export Olivier Pinette, 2012-09-28 14:22
tcpdf.rb_table_with_br_fix_r11288.diff (414 Bytes) tcpdf.rb_table_with_br_fix_r11288.diff Jun NAITOH, 2013-01-30 15:14
table_with_br_fix.png (39.7 KB) table_with_br_fix.png Jun NAITOH, 2013-01-30 15:25
Actions #1

Updated by Jun NAITOH about 11 years ago

I corrected the br tag inside table.

I finished tests on following environments.

  • CentOS 6 CRuby 1.8.7, 1.9.3
Actions #2

Updated by Olivier Pinette about 11 years ago

  • Status changed from New to Resolved

I just apply your change and confirm it fix my issue.
Cheers

Hope it could be a candidate for a future build.
Thank you.

Actions #3

Updated by Toshi MARUYAMA about 11 years ago

  • Target version set to 2.2.3
Actions #4

Updated by Toshi MARUYAMA about 11 years ago

  • Subject changed from PDF export mix cells to pdf: Broken new line in table
Actions #5

Updated by Toshi MARUYAMA about 11 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Fixed

Committed in trunk r11306 and 2.2-stable r11308, thanks.

Actions

Also available in: Atom PDF