Update copy_utils.py

This commit is contained in:
chrys87 2016-08-23 17:14:15 +02:00 committed by GitHub
parent 007eeef118
commit a8b4fdda33

View File

@ -1,6 +1,10 @@
#!/bin/python
def getTextBetweenMarks(inText, firstMark = {'x':0,'y':0}, secondMark = {'x':0,'y':2}):
def getTextBetweenMarks(inText, firstMark, secondMark):
if firstMark == None:
return ''
if secondMark == None:
return ''
if (firstMark['y'] + 1) * (firstMark['x'] + 1) <= (secondMark['y'] + 1) * (secondMark['x'] + 1):
startMark = firstMark.copy()
endMark = secondMark.copy()