From 55c364d8ecc5fb5563b00c672c47d0ad770c1ab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sch=C3=BCrrle?= Date: Fri, 8 Dec 2017 19:36:18 +0100 Subject: [PATCH] Fix broken code on the main page Fix the broken indentation on the python sample code on the main page --- website/static/website/style.css | 4 ++++ website/templates/website/index.html | 16 ++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/website/static/website/style.css b/website/static/website/style.css index fd38c03..e0000fa 100644 --- a/website/static/website/style.css +++ b/website/static/website/style.css @@ -122,3 +122,7 @@ footer { padding-left: 12px; width: 460px; } + +.indent { + margin-left: 30px; +} diff --git a/website/templates/website/index.html b/website/templates/website/index.html index 8305a97..ca3caa5 100644 --- a/website/templates/website/index.html +++ b/website/templates/website/index.html @@ -14,19 +14,19 @@

It's fun

from telegram.ext import Updater, CommandHandler
 
 def start(bot, update):
-update.message.reply_text('Hello World!')
+update.message.reply_text('Hello World!')
 
 def hello(bot, update):
-update.message.reply_text(
-'Hello {}'.format(update.message.from_user.first_name))
+update.message.reply_text(
+'Hello {}'.format(update.message.from_user.first_name))
 
-updater = Updater('YOUR TOKEN HERE')
+updater = Updater('YOUR TOKEN HERE')
 
-updater.dispatcher.add_handler(CommandHandler('start', start))
-updater.dispatcher.add_handler(CommandHandler('hello', hello))
+updater.dispatcher.add_handler(CommandHandler('start', start))
+updater.dispatcher.add_handler(CommandHandler('hello', hello))
 
-updater.start_polling()
-updater.idle()
+updater.start_polling()
+updater.idle()
 

Easy to setup