"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/redmine/export/pdf.rb" between
redmine-4.1.0.tar.gz and redmine-4.1.1.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

pdf.rb  (redmine-4.1.0):pdf.rb  (redmine-4.1.1)
skipping to change at line 55 skipping to change at line 55
set_footer_font([@font_for_content, '', 8]) set_footer_font([@font_for_content, '', 8])
set_default_monospaced_font(@monospaced_font_for_content) set_default_monospaced_font(@monospaced_font_for_content)
set_display_mode('default', 'OneColumn') set_display_mode('default', 'OneColumn')
end end
def SetFontStyle(style, size) def SetFontStyle(style, size)
set_font(@font_for_content, style, size) set_font(@font_for_content, style, size)
end end
def SetFont(family, style='', size=0, fontfile='') def SetFont(family, style='', size=0, fontfile='')
style = +style
# FreeSerif Bold Thai font has problem. # FreeSerif Bold Thai font has problem.
style.delete!('B') if family.to_s.casecmp('freeserif') == 0 style.delete!('B') if family.to_s.casecmp('freeserif') == 0
# DejaVuSans Italic Arabic and Persian font has problem. # DejaVuSans Italic Arabic and Persian font has problem.
style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && curren t_language.to_s.casecmp("vi") != 0 style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && curren t_language.to_s.casecmp("vi") != 0
# DejaVuSansMono Italic Arabic font has problem # DejaVuSansMono Italic Arabic font has problem
style.delete!('I') if family.to_s.casecmp('dejavusansmono') == 0 style.delete!('I') if family.to_s.casecmp('dejavusansmono') == 0
super(family, style, size, fontfile) super(family, style, size, fontfile)
end end
alias_method :set_font, :SetFont alias_method :set_font, :SetFont
skipping to change at line 95 skipping to change at line 96
table, td { table, td {
border: 2px #ff0000 solid; border: 2px #ff0000 solid;
} }
th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; text -align: center; font-style: bold;} th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; text -align: center; font-style: bold;}
pre { pre {
background-color: #fafafa; background-color: #fafafa;
} }
</style>' </style>'
# Strip {{toc}} tags # Strip {{toc}} tags
txt = txt.gsub(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '') txt = txt.gsub(/<p>\{\{((<|&lt;)|(>|&gt;))?toc\}\}<\/p>/i, '')
writeHTMLCell(w, h, x, y, css_tag + txt, border, ln, fill) writeHTMLCell(w, h, x, y, css_tag + txt, border, ln, fill)
end end
def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0) def RDMwriteHTMLCell(w, h, x, y, txt='', attachments=[], border=0, ln=1, fill=0)
txt = formatted_text(txt) txt = formatted_text(txt)
RDMwriteFormattedCell(w, h, x, y, txt, attachments, border, ln, fill) RDMwriteFormattedCell(w, h, x, y, txt, attachments, border, ln, fill)
end end
def get_image_filename(attrname) def get_image_filename(attrname)
atta = RDMPdfEncoding.attach(@attachments, attrname, "UTF-8") atta = RDMPdfEncoding.attach(@attachments, attrname, "UTF-8")
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)