mirror of
https://github.com/redmine/redmine.git
synced 2024-09-13 15:45:44 +02:00
pdf: fix textilized outputs of coderay line numbers (#9692)
Contributed by Jun NAITOH. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8001 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6372688edd
commit
e210c5613f
8
vendor/plugins/rfpdf/lib/tcpdf.rb
vendored
8
vendor/plugins/rfpdf/lib/tcpdf.rb
vendored
@ -3532,11 +3532,11 @@ class TCPDF
|
||||
@page = base_page;
|
||||
@x = base_x + @tdwidth;
|
||||
@y = base_y;
|
||||
elsif (@pre_state == true and element.length > 0)
|
||||
Write(@lasth, unhtmlentities(element), '', fill);
|
||||
elsif (element.strip.length > 0)
|
||||
if @pre_state != true
|
||||
element.gsub!(/[\t\r\n\f]/, "");
|
||||
element.gsub!(/ /, " ");
|
||||
end
|
||||
element.gsub!(/[\t\r\n\f]/, "");
|
||||
element.gsub!(/ /, " ");
|
||||
Write(@lasth, unhtmlentities(element), '', fill);
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user