This commit is contained in:
Neale Pickett 2016-10-18 02:28:24 +00:00
parent 19e0b7684a
commit 0ac8d8e9ac
3 changed files with 6 additions and 6 deletions

View File

@ -15,6 +15,7 @@ except ImportError:
NOT_FOUND = 404
OK = 200
def page(title, body):
return """<!DOCTYPE html>
<html>

View File

@ -335,7 +335,7 @@ class BlockLexer(object):
rest = len(item)
if i != length - 1 and rest:
_next = item[rest-1] == '\n'
_next = item[rest - 1] == '\n'
if not loose:
loose = _next

View File

@ -23,6 +23,7 @@ def djb2hash(buf):
# to be done with Puzzle's random number generator, and it's cleaner to not pass that around.
PuzzleFile = namedtuple('PuzzleFile', ['path', 'handle', 'name', 'visible'])
class Puzzle:
KNOWN_KEYS = [
@ -197,7 +198,6 @@ class Puzzle:
return answer
def htmlify(self):
return mistune.markdown(self.body)
@ -246,4 +246,3 @@ if __name__ == '__main__':
for points in sorted(puzzles):
puzzle = puzzles[points]
print(puzzle.secrets())