|
@@ -1741,7 +1741,6 @@ def edit(name = None):
|
|
|
data = get_name + js_data[0] + '''
|
|
data = get_name + js_data[0] + '''
|
|
|
<form method="post" action="/edit/''' + url_pas(name) + action + '''">
|
|
<form method="post" action="/edit/''' + url_pas(name) + action + '''">
|
|
|
''' + js_data[1] + '''
|
|
''' + js_data[1] + '''
|
|
|
- <hr>
|
|
|
|
|
<textarea id="content" rows="25" name="content">''' + html.escape(re.sub('\n$', '', data)) + '''</textarea>
|
|
<textarea id="content" rows="25" name="content">''' + html.escape(re.sub('\n$', '', data)) + '''</textarea>
|
|
|
<textarea style="display: none;" name="otent">''' + html.escape(re.sub('\n$', '', data_old)) + '''</textarea>
|
|
<textarea style="display: none;" name="otent">''' + html.escape(re.sub('\n$', '', data_old)) + '''</textarea>
|
|
|
<hr>
|
|
<hr>
|
|
@@ -1783,7 +1782,6 @@ def preview(name = None):
|
|
|
data = js_data[0] + '''
|
|
data = js_data[0] + '''
|
|
|
<form method="post" action="/edit/''' + url_pas(name) + action + '''">
|
|
<form method="post" action="/edit/''' + url_pas(name) + action + '''">
|
|
|
''' + js_data[1] + '''
|
|
''' + js_data[1] + '''
|
|
|
- <hr>
|
|
|
|
|
<textarea id="content" rows="25" name="content">''' + html.escape(request.form.get('content', None)) + '''</textarea>
|
|
<textarea id="content" rows="25" name="content">''' + html.escape(request.form.get('content', None)) + '''</textarea>
|
|
|
<textarea style="display: none;" name="otent">''' + html.escape(request.form.get('otent', None)) + '''</textarea>
|
|
<textarea style="display: none;" name="otent">''' + html.escape(request.form.get('otent', None)) + '''</textarea>
|
|
|
<hr>
|
|
<hr>
|