summaryrefslogtreecommitdiffstats
path: root/vendor/plugins/rfpdf
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-30 07:59:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-30 07:59:32 +0000
commite210c5613f4fa5a344165d062f2eedcec48fbab0 (patch)
tree5dc4f968faa566c5834b08276d0ab93b948e8a05 /vendor/plugins/rfpdf
parent6372688edd23facc79d15caf84ccc96970ff8cf5 (diff)
downloadredmine-e210c5613f4fa5a344165d062f2eedcec48fbab0.tar.gz
redmine-e210c5613f4fa5a344165d062f2eedcec48fbab0.zip
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
Diffstat (limited to 'vendor/plugins/rfpdf')
-rwxr-xr-xvendor/plugins/rfpdf/lib/tcpdf.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/plugins/rfpdf/lib/tcpdf.rb b/vendor/plugins/rfpdf/lib/tcpdf.rb
index 110f7d520..9f7fa1bb7 100755
--- a/vendor/plugins/rfpdf/lib/tcpdf.rb
+++ b/vendor/plugins/rfpdf/lib/tcpdf.rb
@@ -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!(/&nbsp;/, " ");
- end
+ element.gsub!(/[\t\r\n\f]/, "");
+ element.gsub!(/&nbsp;/, " ");
Write(@lasth, unhtmlentities(element), '', fill);
end
end