Add contribs to About IITC, fix minor newline issue in loaderMD

This commit is contained in:
Kevin
2013-04-28 18:55:36 -07:00
parent 764e31db4b
commit 25b6f239c2
3 changed files with 6 additions and 3 deletions

View File

@ -93,7 +93,7 @@ def loaderMD(var):
payload = {'text': file, 'mode': 'markdown'}
headers = {'Content-Type': 'application/json'}
req = urllib2.Request(url, json.dumps(payload).encode('utf8'), headers)
md = urllib2.urlopen(req).read().decode('utf8').replace('\n', '').replace('\'', '\\\'')
md = urllib2.urlopen(req).read().decode('utf8').replace('\n', '\\n').replace('\'', '\\\'')
files[fn] = {}
files[fn][filemd5] = md
db['files'] = files