mirror of
https://github.com/brmlab/misc.git
synced 2025-06-07 17:34:08 +02:00
Fixed EOL
This commit is contained in:
parent
eaf5c42df1
commit
15a57f0783
1 changed files with 4 additions and 4 deletions
|
@ -34,25 +34,25 @@ for line in l2:
|
|||
# event page s popiskem
|
||||
a = re.match(r" \* (.*) \[\[event:(.*)\|(.*)\]\]", line)
|
||||
if a is not None:
|
||||
out.append(a.group(1) + " " + a.group(3) + " - " + " http://brmlab.cz/event/" + a.group(2))
|
||||
out.append(a.group(1) + " " + a.group(3) + " - " + " http://brmlab.cz/event/" + a.group(2) + "\n")
|
||||
continue
|
||||
|
||||
# event page bez popisku
|
||||
a = re.match(r" \* (.*) \[\[event:(.*)\]\]", line)
|
||||
if a is not None:
|
||||
out.append(a.group(1) + " " + "http://brmlab.cz/event/" + a.group(2))
|
||||
out.append(a.group(1) + " " + "http://brmlab.cz/event/" + a.group(2) + "\n")
|
||||
continue
|
||||
|
||||
# link s popiskem
|
||||
a = re.match(r" \* (.*) \[\[(?<!event)(.*)\|(.*)\]\]", line)
|
||||
if a is not None:
|
||||
out.append(a.group(1) + " " + a.group(3) + " - " + a.group(2))
|
||||
out.append(a.group(1) + " " + a.group(3) + " - " + a.group(2) + "\n")
|
||||
continue
|
||||
|
||||
# ostatni
|
||||
a = re.match(r" \* (.*)", line)
|
||||
if a is not None:
|
||||
out.append(a.group(1))
|
||||
out.append(a.group(1) + "\n")
|
||||
|
||||
msg = MIMEText("".join(out))
|
||||
msg['Subject'] = "Týdenní přehled událostí"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue