Browse Source

Made Breaklines more generic

marches
Anthony Rinaldo 3 years ago
parent
commit
058e1e7078
  1. 3
      app/routes.py

3
app/routes.py

@ -108,10 +108,11 @@ def marchLog(world,logname):
X = logData[2].split(":")[1]
Y = logData[3].split(":")[1]
logs = []
breakLine = re.compile("^---*$")
for i in range(4,len(logData)):
if len(logData[i]) == 0:
continue
if logData[i] == "-----":
if breakLine.match(logData[i]):
char = logData[i+1]
text = ""
i += 1 #adjust offset in file. We are now at the player's name

Loading…
Cancel
Save