remove unneeded trailing ';' from lib/redmine/export/pdf.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@13132 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
1944473eee
commit
868e15ff2d
|
@ -233,9 +233,9 @@ module Redmine
|
||||||
#Outline root
|
#Outline root
|
||||||
newobj()
|
newobj()
|
||||||
@outlineRoot=self.n
|
@outlineRoot=self.n
|
||||||
out("<</Type /Outlines /First #{n} 0 R");
|
out("<</Type /Outlines /First #{n} 0 R")
|
||||||
out("/Last #{n+lru[0]} 0 R>>");
|
out("/Last #{n+lru[0]} 0 R>>")
|
||||||
out('endobj');
|
out('endobj')
|
||||||
end
|
end
|
||||||
|
|
||||||
def putresources()
|
def putresources()
|
||||||
|
@ -246,8 +246,8 @@ module Redmine
|
||||||
def putcatalog()
|
def putcatalog()
|
||||||
super
|
super
|
||||||
if(@outlines.size > 0)
|
if(@outlines.size > 0)
|
||||||
out("/Outlines #{@outlineRoot} 0 R");
|
out("/Outlines #{@outlineRoot} 0 R")
|
||||||
out('/PageMode /UseOutlines');
|
out('/PageMode /UseOutlines')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -389,13 +389,13 @@ module Redmine
|
||||||
base_x = pdf.GetX
|
base_x = pdf.GetX
|
||||||
base_y = pdf.GetY
|
base_y = pdf.GetY
|
||||||
max_height = issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true)
|
max_height = issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true)
|
||||||
pdf.Rect(base_x, base_y, table_width, max_height, 'FD');
|
pdf.Rect(base_x, base_y, table_width, max_height, 'FD')
|
||||||
pdf.SetXY(base_x, base_y);
|
pdf.SetXY(base_x, base_y)
|
||||||
|
|
||||||
# write the cells on page
|
# write the cells on page
|
||||||
issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true)
|
issues_to_pdf_write_cells(pdf, query.inline_columns, col_width, row_height, true)
|
||||||
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width)
|
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width)
|
||||||
pdf.SetY(base_y + max_height);
|
pdf.SetY(base_y + max_height)
|
||||||
|
|
||||||
# rows
|
# rows
|
||||||
pdf.SetFontStyle('',8)
|
pdf.SetFontStyle('',8)
|
||||||
|
@ -475,7 +475,7 @@ module Redmine
|
||||||
# write the cells on page
|
# write the cells on page
|
||||||
issues_to_pdf_write_cells(pdf, col_values, col_width, row_height)
|
issues_to_pdf_write_cells(pdf, col_values, col_width, row_height)
|
||||||
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width)
|
issues_to_pdf_draw_borders(pdf, base_x, base_y, base_y + max_height, 0, col_width)
|
||||||
pdf.SetY(base_y + max_height);
|
pdf.SetY(base_y + max_height)
|
||||||
|
|
||||||
if query.has_column?(:description) && issue.description?
|
if query.has_column?(:description) && issue.description?
|
||||||
pdf.SetX(10)
|
pdf.SetX(10)
|
||||||
|
@ -504,7 +504,7 @@ module Redmine
|
||||||
pdf.RDMMultiCell(col_widths[i], row_height, column, "T", 'L', 1)
|
pdf.RDMMultiCell(col_widths[i], row_height, column, "T", 'L', 1)
|
||||||
end
|
end
|
||||||
max_height = (pdf.GetY - base_y) if (pdf.GetY - base_y) > max_height
|
max_height = (pdf.GetY - base_y) if (pdf.GetY - base_y) > max_height
|
||||||
pdf.SetXY(col_x + col_widths[i], base_y);
|
pdf.SetXY(col_x + col_widths[i], base_y)
|
||||||
end
|
end
|
||||||
return max_height
|
return max_height
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue