Show
Ignore:
Timestamp:
10/06/08 00:22:07 (16 years ago)
Author:
jerome
Message:

Removed spaces at EOL.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/tests/runcolors.py

    r564 r3436  
    11#! /usr/bin/env python 
    2 # -*- coding: UTF-8 -*- 
     2# -*- coding: utf-8 -*- 
    33# 
    44# pkpgcounter : a generic Page Description Language parser 
     
    99# the Free Software Foundation, either version 3 of the License, or 
    1010# (at your option) any later version. 
    11 #  
     11# 
    1212# This program is distributed in the hope that it will be useful, 
    1313# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1414# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1515# GNU General Public License for more details. 
    16 #  
     16# 
    1717# You should have received a copy of the GNU General Public License 
    1818# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
     
    5252        pkpgcounter --colorspace $cspace colors.pdf ; 
    5353        echo ; 
    54     done     
     54    done 
    5555 
    5656Please report any problem to : alet@librelogiciel.com 
     
    115115    from reportlab.lib.units import cm 
    116116    from reportlab.pdfgen import canvas 
    117 except ImportError :     
     117except ImportError : 
    118118    sys.stderr.write("Please download and install ReportLab\n\tfrom http://www.reportlab.org\n") 
    119119    sys.exit(-1) 
     
    124124    xbase = 2*cm 
    125125    ybase = height - 2*cm 
    126      
     126 
    127127    # First we output the explanations on the first page. 
    128128    canv.setFont("Courier", 14) 
     
    131131        ybase -= 18 
    132132    canv.showPage() 
    133      
     133 
    134134    # Then we output each page 
    135135    for color in (colors.Color(1, 0, 0),        # Red 
    136136                  colors.Color(0, 1, 0),        # Green 
    137137                  colors.Color(0, 0, 1)) :      # Blue 
    138         canv.setStrokeColorRGB(*color.rgb())           
    139         canv.setFillColorRGB(*color.rgb())           
     138        canv.setStrokeColorRGB(*color.rgb()) 
     139        canv.setFillColorRGB(*color.rgb()) 
    140140        canv.rect(0, 0, width, height, fill=1) 
    141141        canv.showPage() 
    142          
     142 
    143143    for color in (colors.CMYKColor(1, 0, 0, 0), # Cyan 
    144144                  colors.CMYKColor(0, 1, 0, 0), # Magenta 
     
    146146                  colors.CMYKColor(0, 0, 0, 1), # Black 
    147147                  colors.CMYKColor(0, 0, 0, 0)) : # White 
    148         canv.setStrokeColorCMYK(*color.cmyk())           
    149         canv.setFillColorCMYK(*color.cmyk())           
     148        canv.setStrokeColorCMYK(*color.cmyk()) 
     149        canv.setFillColorCMYK(*color.cmyk()) 
    150150        canv.rect(0, 0, width, height, fill=1) 
    151151        canv.showPage() 
    152          
     152 
    153153    # Finally outputs the expected results. 
    154154    canv.setFont("Helvetica-Bold", 16) 
     
    160160        ybase -= 14 
    161161    canv.showPage() 
    162          
    163     canv.save()         
     162 
     163    canv.save()