diff --git a/app.py b/app.py
index da0979a..aaaaa5d 100644
--- a/app.py
+++ b/app.py
@@ -1,4 +1,4 @@
from app import app
if __name__ == '__main__':
- app.run(host='0.0.0.0',debug=True)
+ app.run(host='0.0.0.0',port=1234,debug=True)
diff --git a/app/data.db b/app/data.db
index 87d879c..3e38419 100644
Binary files a/app/data.db and b/app/data.db differ
diff --git a/app/static/css/style.css b/app/static/css/style.css
index 0ac964a..ba09526 100644
--- a/app/static/css/style.css
+++ b/app/static/css/style.css
@@ -68,6 +68,16 @@ h2{
font-style: italic;
}
+.references{
+ display: block;
+ font-size: 11px;
+ line-height: 18px!important;
+ padding: 0;
+ margin: 0;
+ padding-bottom: 15px;
+ max-width: 500px!important;
+}
+
h3{
font-weight: normal;
font-family: 'suisseintl';
diff --git a/app/static/css/style_pub.css b/app/static/css/style_pub.css
index ca32630..6f27a0f 100644
--- a/app/static/css/style_pub.css
+++ b/app/static/css/style_pub.css
@@ -1,2 +1,11 @@
-#main{font-family: monospace;}
+#main{font-family: monospace;
+max-width: 50%;}
.mono{}
+
+
+.references{
+ display: block;
+ font-style: italic;
+ padding-bottom: 10px;
+ max-width: 50%;
+}
diff --git a/app/templates/writer.html b/app/templates/writer.html
index 9ae03c1..230f749 100644
--- a/app/templates/writer.html
+++ b/app/templates/writer.html
@@ -38,6 +38,7 @@
P
img sub
+ references
@@ -543,6 +544,12 @@ $('#toolbar a').click(function(e) {
{
selection = window.getSelection().toString();
wrappedselection = '' + selection + '';
+document.execCommand('insertHTML', false, wrappedselection);
+ }
+ if(command == "references")
+ {
+ selection = window.getSelection().toString();
+wrappedselection = '' + selection + '';
document.execCommand('insertHTML', false, wrappedselection);
}
if (command == 'createlink' || command == 'insertimage') {
diff --git a/app/views.py b/app/views.py
index b78fbd8..85de210 100644
--- a/app/views.py
+++ b/app/views.py
@@ -248,7 +248,11 @@ def get_text():
removedImg = []
imgsub = []
for a in soup.find_all("a", {'class':'linkTo'}):
- removedLinks.append(a.extract().get_text())
+ removedLinks.append(a.extract()['href'])
+ for span in soup.find_all("span", {'class':'references'}):
+ span.replace_with("&&ref"+span.get_text()+" &&endref ")
+ for span in soup.find_all("u"):
+ span.replace_with(" &&uline"+span.get_text()+" &&enduline ")
for img in soup.find_all("img"):
removedImg.append(img['src'])
for subtitle in soup.find_all("span", {'class':'imgsub'}):
diff --git a/nohup.out b/nohup.out
new file mode 100644
index 0000000..eaf7033
--- /dev/null
+++ b/nohup.out
@@ -0,0 +1,5 @@
+1559814619687 addons.xpi WARN Can't get modified time of /usr/lib/thunderbird/features/wetransfer@extensions.thunderbird.net
+1559832848106 addons.update-checker WARN Update manifest for messagingmenu@mozilla.com did not contain an updates property
+1559832848125 addons.update-checker WARN Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property
+1559919248530 addons.update-checker WARN Update manifest for messagingmenu@mozilla.com did not contain an updates property
+1559919248558 addons.update-checker WARN Update manifest for {972ce4c6-7e08-4474-a285-3208198ce6fd} did not contain an updates property