From 2b867baef7b6be31fc15d95639427e2a871ee424 Mon Sep 17 00:00:00 2001 From: Kamil Bugajski Date: Mon, 20 Aug 2012 17:35:42 +0200 Subject: [PATCH] vergleich mit re.match() --- libs/piccreate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/piccreate.py b/libs/piccreate.py index 90ec728..21cae3c 100644 --- a/libs/piccreate.py +++ b/libs/piccreate.py @@ -8,6 +8,7 @@ __license__ = 'BSD' import optparse import os +import re import ConfigParser from utils import CSVImport, CompleteEnding, get_translation from django.utils.encoding import smart_str, smart_unicode @@ -163,7 +164,7 @@ class Word: content = dict() content['posy'] = y g = self.font.GlyphGet(c) - if options.startfrom and (c ==' ' or c.isupper()) : + if options.startfrom and (re.match(c,' ') or c.isupper()) : counter = 0 content['posx'] = str(x) # die Position ist erst für den nächsten Buchstaben relevant