Skip to content

Commit

Permalink
looks like we cant get to .options from here...
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Villela committed Oct 9, 2011
1 parent 1749422 commit 6cc436c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os
from html2text import html2text
import html2text
from flask import Flask, request

html2text.options['ul_item_mark'] = '-'
html2text.BODY_WIDTH = 140

app = Flask(__name__)
Expand All @@ -13,7 +12,7 @@ def get():

@app.route("/", methods=['POST'])
def post():
return html2text(request.form['html'])
return html2text.html2text(request.form['html'])

if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
Expand Down

0 comments on commit 6cc436c

Please sign in to comment.