diff --git a/heresmyclipboard.py b/heresmyclipboard.py index a184f9a..0eeb084 100644 --- a/heresmyclipboard.py +++ b/heresmyclipboard.py @@ -10,19 +10,20 @@ log = vlogging.getLogger(__name__, 'heresmyclipboard') site = flask.Flask(__name__) +TEMPLATE = ''' + +
++{{clip}} ++ + +''' + @site.route('/') def root(): clip = pyperclip.paste() - template = ''' - - -
- {{clip}} -- - - ''' - return flask.render_template_string(template, clip=clip) + return flask.render_template_string(TEMPLATE, clip=clip) def heresmyclipboard_argparse(args): log.info(f'Starting server on port {args.port}, pid={os.getpid()}')