From df1eef51a9254dec515fabada92b540aa190d1a6 Mon Sep 17 00:00:00 2001
From: Arkerthan <arkerthan@gmail.com>
Date: Wed, 19 May 2021 19:06:29 +0200
Subject: [PATCH] clean pregnancy ency article

---
 src/gui/Encyclopedia/encyclopediaBody.js | 28 ++++++++++++------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/gui/Encyclopedia/encyclopediaBody.js b/src/gui/Encyclopedia/encyclopediaBody.js
index ff8f91b4030..79a36bb0b96 100644
--- a/src/gui/Encyclopedia/encyclopediaBody.js
+++ b/src/gui/Encyclopedia/encyclopediaBody.js
@@ -279,20 +279,20 @@ App.Encyclopedia.addArticle("Ovaries", function() {
 }, "body");
 
 App.Encyclopedia.addArticle("Pregnancy", function() {
-	return App.UI.DOM.combineNodes(
-		`Slaves require both `,
-		App.Encyclopedia.Dialog.linkDOM("vaginas", "Vaginas"),
-		` and `,
-		App.Encyclopedia.Dialog.linkDOM("ovaries", "Ovaries"),
-		` to become`,
-		App.Encyclopedia.topic("pregnant."),
-		`However, it's rumored that Gender Radicalist societies have developed a method for `,
-		App.Encyclopedia.Dialog.linkDOM("male impregnation", "Gender Radicalism Research"),
-		`. Fertile slaves can be impregnated by the player character or a slave with `,
-		App.Encyclopedia.Dialog.linkDOM("testicles", "Testicles"),
-		` from the fertile slave's individual menu. Otherwise, slaves with vaginas and ovaries who aren't wearing chastity belts or taking contraceptives, and have not had their tubes tied via surgery, will likely become pregnant if performing sexual jobs or if allowed to have sex with slaves with balls. Pregnancy has a number of minor physical effects and will induce `,
-		App.Encyclopedia.Dialog.linkDOM("lactation", "Lactation")
-	);
+	const fragment = new DocumentFragment();
+	let r = [];
+	r.push(`Slaves require both`);
+	r.push(App.Encyclopedia.Dialog.linkDOM("vaginas", "Vaginas"));
+	r.push(`and`);
+	r.push(App.Encyclopedia.Dialog.linkDOM("ovaries", "Ovaries"));
+	r.push(`to become pregnant. However, it's rumored that Gender Radicalist societies have developed a method for `);
+	r.push(App.UI.DOM.combineNodes(App.Encyclopedia.Dialog.linkDOM("male impregnation", "Gender Radicalism Research"), "."));
+	r.push(`Fertile slaves can be impregnated by the player character or a slave with`);
+	r.push(App.Encyclopedia.Dialog.linkDOM("testicles", "Testicles"));
+	r.push(`from the fertile slave's individual menu. Otherwise, slaves with vaginas and ovaries who aren't wearing chastity belts or taking contraceptives, and have not had their tubes tied via surgery, will likely become pregnant if performing sexual jobs or if allowed to have sex with slaves with balls. Pregnancy has a number of minor physical effects and will induce`);
+	r.push(App.Encyclopedia.Dialog.linkDOM("lactation", "Lactation"));
+	App.Events.addParagraph(fragment, r);
+	return fragment;
 }, "body");
 
 App.Encyclopedia.addArticle("Skin Distinctions", function() {
-- 
GitLab