From d0b00c53d4eee823f3fa65feeaf5c76b57d96290 Mon Sep 17 00:00:00 2001
From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de>
Date: Wed, 25 Sep 2024 21:17:42 +0200
Subject: [PATCH] cit

---
 code/bibtex.bib |  2 +-
 code/cit.py     |  4 ++--
 code/output.txt | 10 +++++-----
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/code/bibtex.bib b/code/bibtex.bib
index a7087a32..1e30bd73 100644
--- a/code/bibtex.bib
+++ b/code/bibtex.bib
@@ -1,4 +1,4 @@
-@book{Chadwick_2012, address={London}, edition={2nd ed}, title={Encyclopedia of applied ethics}, ISBN={978-0-12-373932-2}, publisher={Academic Press}, author={Chadwick, Ruth F.}, year={2012}, language={eng} }
+@book{Chadwick_2012, address={London}, edition={2nd ed}, title={Encyclopedia of applied ethics}, ISBN={978-0-12-373932-2}, publisher={Academic Press}, author={Chadwick, Ruth F}, year={2012}, language={eng} }
 
 @article{Rubeis_Steger_2018, title={Risks and benefits of human germline genome editing: An ethical analysis}, volume={10}, ISSN={1793-8759, 1793-9453}, DOI={10.1007/s41649-018-0056-x}, number={2}, journal={Asian Bioethics Review}, author={Rubeis, Giovanni and Steger, Florian}, year={2018}, month=jul, pages={133–141}, language={en} }
 
diff --git a/code/cit.py b/code/cit.py
index 39221c65..a2083631 100644
--- a/code/cit.py
+++ b/code/cit.py
@@ -211,9 +211,9 @@ def bookHTML(dictio, x, out):
     out.write("\t" + "\t" +"<span property=\"schema:Name\"> " + aut + "</span>."+ "\n")
     out.write("\t" +"</span>"+ "\n")
     out.write("\t" + "<span property=\"schema:name\">"+dictio['title']+ ".</span>"+ "\n")
-    out.write("\t" +"<i property=\"schema:publisher\" typeof=\"schema:Organization\">"+ dictio['publisher'] +"</i>"+ "\n")
+    out.write("\t" +"<i property=\"schema:publisher\" typeof=\"schema:Organization\">&nbsp;"+ dictio['publisher'] +"</i>"+ "\n")
     year = dictio['year']
-    out.write("\t" +" (<time property=\"schema:datePublished\" datatype=\"xsd:gYear\" dateTime=\"" + year + "\">"+year+"</time>)."+ "\n")
+    out.write("\t" + "&nbsp;(<time property=\"schema:datePublished\" datatype=\"xsd:gYear\" dateTime=\"" + year + "\">"+year+"</time>)."+ "\n")
     out.write("</li>" + "\n"+ "\n")
 
 
diff --git a/code/output.txt b/code/output.txt
index e415da94..2b9defe6 100644
--- a/code/output.txt
+++ b/code/output.txt
@@ -1,11 +1,11 @@
 {/*<!-- Citation num 1--> */}
 <li typeof="schema:WebPage" role="doc-biblioentry" property="schema:citation" id="desc-1">
 	<span property="schema:author" typeof="schema:Organisation">
-		<span property="schema:Name"> Chadwick, Ruth F.</span>.
+		<span property="schema:Name"> Chadwick, Ruth F</span>.
 	</span>
 	<span property="schema:name">Encyclopedia of applied ethics.</span>
-	<i property="schema:publisher" typeof="schema:Organization">Academic Press</i>
-	 (<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2012">2012</time>).
+	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Academic Press</i>
+	&nbsp;(<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2012">2012</time>).
 </li>
 
 {/*<!-- Citation num 2--> */}
@@ -41,7 +41,7 @@
 		<span property="schema:Name"> Pugh, Jonathan</span>.
 	</span>
 	<span property="schema:name">Autonomy, Rationality, and Contemporary Bioethics.</span>
-	<i property="schema:publisher" typeof="schema:Organization">Oxford University PressOxford</i>
-	 (<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2020">2020</time>).
+	<i property="schema:publisher" typeof="schema:Organization">&nbsp;Oxford University PressOxford</i>
+	&nbsp;(<time property="schema:datePublished" datatype="xsd:gYear" dateTime="2020">2020</time>).
 </li>
 
-- 
GitLab