* src/docgen/PdfDoc.py (make_color): Remove the first occurence --

was defined twice; (left_print): Remove print statement.


svn: r2081
This commit is contained in:
Alex Roitman 2003-09-02 04:04:07 +00:00
parent 94b962f026
commit 967c6aba28
2 changed files with 2 additions and 4 deletions

View File

@ -4,6 +4,8 @@
* src/docgen/SvgDrawDoc.py: Change from Text/DrawDoc to BaseDoc
2003-09-01 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/PdfDoc.py (make_color): Remove the first occurence --
was defined twice; (left_print): Remove print statement.
* src/plugins/BookReport.py (BookList.save): Enable saving options
which are lists;
(BookParser.startElement, BookParser.endElement): Enable parsing

View File

@ -475,7 +475,6 @@ class PdfDoc(BaseDoc.BaseDoc):
start_x = x
for text in lines:
print text, start_x, start_y
s = String(start_x,
start_y,
str(text),
@ -486,9 +485,6 @@ class PdfDoc(BaseDoc.BaseDoc):
self.drawing.add(s)
start_y = start_y - size*1.2
def make_color(c):
return Color(float(c[0])/255.0, float(c[1])/255.0, float(c[2])/255.0)
#------------------------------------------------------------------------
#
# Convert an RGB color tulple to a Color instance