vergleich mit re.match()
This commit is contained in:
+2
-1
@@ -8,6 +8,7 @@ __license__ = 'BSD'
|
|||||||
|
|
||||||
import optparse
|
import optparse
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
from utils import CSVImport, CompleteEnding, get_translation
|
from utils import CSVImport, CompleteEnding, get_translation
|
||||||
from django.utils.encoding import smart_str, smart_unicode
|
from django.utils.encoding import smart_str, smart_unicode
|
||||||
@@ -163,7 +164,7 @@ class Word:
|
|||||||
content = dict()
|
content = dict()
|
||||||
content['posy'] = y
|
content['posy'] = y
|
||||||
g = self.font.GlyphGet(c)
|
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
|
counter = 0
|
||||||
content['posx'] = str(x)
|
content['posx'] = str(x)
|
||||||
# die Position ist erst für den nächsten Buchstaben relevant
|
# die Position ist erst für den nächsten Buchstaben relevant
|
||||||
|
|||||||
Reference in New Issue
Block a user