forked from rcslab/sosp19-www
-
Notifications
You must be signed in to change notification settings - Fork 1
/
schedformat.py
executable file
·19 lines (17 loc) · 1.08 KB
/
schedformat.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python3
f = open("program.md","r")
for l in f:
if l.startswith("TITLE "):
print(" <tr><td>")
print(" <span class=\"pull-right\">")
print(" <a href=\"#\"><img class=\"icon-paper\" src=\"images/icon-paper.png\"></img></a>")
print(" <a href=\"#\"><img class=\"icon-slide\" src=\"images/icon-slide.png\"></img></a>")
print(" <a href=\"#\"><img class=\"icon-video\" src=\"images/icon-video.png\"></img></a>")
print(" <a href=\"#\"><img class=\"icon-minutes\" src=\"images/icon-minutes.png\"></img></a>")
print(" <a href=\"#\"><img class=\"icon-links\" src=\"images/icon-links.png\"></img></a>")
print(" <a href=\"#\"><img class=\"icon-answer\" src=\"images/icon-answer.png\"></img></a>")
print(" </span>")
print(" <strong><a href=\"\">" + l[6:] + "</a></strong>")
print(" </td></tr>")
if l.startswith("AUTHORS "):
print(" <tr><td>" + l[8:] + "</td></tr>")