|
@@ -25,27 +25,27 @@ def footnote(data, fol_num):
|
|
|
break
|
|
break
|
|
|
|
|
|
|
|
if none_this == 0:
|
|
if none_this == 0:
|
|
|
- data = pop_re.sub("<sup><a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ");' id='rfn-" + str(a) + "'>[" + results[0] + "]</a></sup>" + \
|
|
|
|
|
|
|
+ data = pop_re.sub("<sup><a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ", 1);' id='rfn-" + str(a) + "'>(" + results[0] + ")</a></sup>" + \
|
|
|
"<div class='popup' style='display: none;' id='folding_" + str(fol_num) + "'><a onclick='folding(" + str(fol_num) + ");'" + \
|
|
"<div class='popup' style='display: none;' id='folding_" + str(fol_num) + "'><a onclick='folding(" + str(fol_num) + ");'" + \
|
|
|
- " href='#fn-" + str(a) + "'>#d#" + results[0] + "#/d#</a> <a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ");'>[X]</a> " + \
|
|
|
|
|
|
|
+ " href='#fn-" + str(a) + "'>(" + results[0] + ")</a> <a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ");'>(X)</a> " + \
|
|
|
namu[i + 1] + "</div>", data, 1)
|
|
namu[i + 1] + "</div>", data, 1)
|
|
|
else:
|
|
else:
|
|
|
- data = pop_re.sub("<sup><a href='javascript:void(0);' id='rfn-" + str(a) + "'>#d#" + results[0] + "#/d#</a></sup>", data, 1)
|
|
|
|
|
|
|
+ data = pop_re.sub("<sup><a href='javascript:void(0);' id='rfn-" + str(a) + "'>(" + results[0] + ")</a></sup>", data, 1)
|
|
|
else:
|
|
else:
|
|
|
if(results[0]):
|
|
if(results[0]):
|
|
|
namu += [results[0]]
|
|
namu += [results[0]]
|
|
|
namu += [results[1]]
|
|
namu += [results[1]]
|
|
|
|
|
|
|
|
- tou += "<span id='footnote-list'><a href='#rfn-" + str(a) + "' id='fn-" + str(a) + "'>[" + results[0] + "]</a> " + results[1] + "</span><br>"
|
|
|
|
|
- data = pop_re.sub("<sup><a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ");' id='rfn-" + str(a) + "'>#d#" + results[0] + "#/d#</a>" + \
|
|
|
|
|
|
|
+ tou += "<span id='footnote-list'><a href='#rfn-" + str(a) + "' id='fn-" + str(a) + "'>(" + results[0] + ")</a> " + results[1] + "</span><br>"
|
|
|
|
|
+ data = pop_re.sub("<sup><a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ", 1);' id='rfn-" + str(a) + "'>(" + results[0] + ")</a>" + \
|
|
|
"</sup><div class='popup' style='display: none;' id='folding_" + str(fol_num) + "'><a onclick='folding(" + str(fol_num) + ");'" + \
|
|
"</sup><div class='popup' style='display: none;' id='folding_" + str(fol_num) + "'><a onclick='folding(" + str(fol_num) + ");'" + \
|
|
|
- " href='#fn-" + str(a) + "'>#d#" + results[0] + "#/d#</a> <a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ");'>" + \
|
|
|
|
|
- "#d#X#/d#</a> " + results[1] + "</div>", data, 1)
|
|
|
|
|
|
|
+ " href='#fn-" + str(a) + "'>(" + results[0] + ")</a> <a href='javascript:void(0);' onclick='folding(" + str(fol_num) + ");'>" + \
|
|
|
|
|
+ "(X)</a> " + results[1] + "</div>", data, 1)
|
|
|
else:
|
|
else:
|
|
|
- tou += "<span id='footnote-list'><a href='#rfn-" + str(a) + "' id='fn-" + str(a) + "'>[" + str(a) + "]</a> " + results[1] + "</span><br>"
|
|
|
|
|
- data = pop_re.sub('<sup><a href="javascript:void(0);" onclick="folding(' + str(fol_num) + ');" id="rfn-' + str(a) + '">#d#' + str(a) + '#/d#</a></sup>' + \
|
|
|
|
|
|
|
+ tou += "<span id='footnote-list'><a href='#rfn-" + str(a) + "' id='fn-" + str(a) + "'>(" + str(a) + ")</a> " + results[1] + "</span><br>"
|
|
|
|
|
+ data = pop_re.sub('<sup><a href="javascript:void(0);" onclick="folding(' + str(fol_num) + ', 1);" id="rfn-' + str(a) + '">(' + str(a) + ')</a></sup>' + \
|
|
|
'<div class="popup" style="display: none;" id="folding_' + str(fol_num) + '"><a onclick="folding(' + str(fol_num) + ');"' + \
|
|
'<div class="popup" style="display: none;" id="folding_' + str(fol_num) + '"><a onclick="folding(' + str(fol_num) + ');"' + \
|
|
|
- ' href="#fn-' + str(a) + '">#d#' + str(a) + '#/d#</a> <a href="javascript:void(0);" onclick="folding(' + str(fol_num) + ');">#d#X#/d#</a> ' + \
|
|
|
|
|
|
|
+ ' href="#fn-' + str(a) + '">(' + str(a) + ')</a> <a href="javascript:void(0);" onclick="folding(' + str(fol_num) + ');">(X)</a> ' + \
|
|
|
results[1] + '</div>', data, 1)
|
|
results[1] + '</div>', data, 1)
|
|
|
a += 1
|
|
a += 1
|
|
|
|
|
|
|
@@ -55,8 +55,6 @@ def footnote(data, fol_num):
|
|
|
|
|
|
|
|
if tou == "<hr style='margin-top: 30px;' id='footnote'><div><br></div>":
|
|
if tou == "<hr style='margin-top: 30px;' id='footnote'><div><br></div>":
|
|
|
tou = ""
|
|
tou = ""
|
|
|
- else:
|
|
|
|
|
- tou = re.sub('#d#(?P<in>(?:(?!#\/d#).)*)#\/d#', '[\g<in>]', tou)
|
|
|
|
|
|
|
|
|
|
data = pop_re.sub("<br>" + tou, data, 1)
|
|
data = pop_re.sub("<br>" + tou, data, 1)
|
|
|
tou = "<hr style='margin-top: 30px;' id='footnote'><div><br>"
|
|
tou = "<hr style='margin-top: 30px;' id='footnote'><div><br>"
|
|
@@ -65,12 +63,8 @@ def footnote(data, fol_num):
|
|
|
|
|
|
|
|
if tou == "<hr style='margin-top: 30px;' id='footnote'><div><br></div>":
|
|
if tou == "<hr style='margin-top: 30px;' id='footnote'><div><br></div>":
|
|
|
tou = ""
|
|
tou = ""
|
|
|
- else:
|
|
|
|
|
- tou = re.sub('#d#(?P<in>(?:(?!#\/d#).)*)#\/d#', '[\g<in>]', tou)
|
|
|
|
|
|
|
|
|
|
break
|
|
break
|
|
|
-
|
|
|
|
|
- data = re.sub('#d#(?P<in>(?:(?!#\/d#).)*)#\/d#', '[\g<in>]', data)
|
|
|
|
|
|
|
|
|
|
data = re.sub("\[각주\](?:(?:<br>| |\r|\n)+)?$", "", data)
|
|
data = re.sub("\[각주\](?:(?:<br>| |\r|\n)+)?$", "", data)
|
|
|
data = re.sub("(?:(?:<br>| |\r|\n)+)$", "", data)
|
|
data = re.sub("(?:(?:<br>| |\r|\n)+)$", "", data)
|