From cfe344065378affa57b723e2744fd6066ef8bf29 Mon Sep 17 00:00:00 2001
From: lowercasedonkey <lowercasedonkey@gmail.com>
Date: Fri, 22 Jan 2021 14:03:08 -0500
Subject: [PATCH] personal notes printing html fix

---
 src/endWeek/economics/personalNotes.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/endWeek/economics/personalNotes.js b/src/endWeek/economics/personalNotes.js
index c7111acd02e..ffb6fc9ff0f 100644
--- a/src/endWeek/economics/personalNotes.js
+++ b/src/endWeek/economics/personalNotes.js
@@ -284,11 +284,18 @@ App.EndWeek.personalNotes = function() {
 				V.PC.labor = 1;
 			}
 			if (V.PC.labor === 1) {
+				App.Events.addParagraph(el, r);
+				r = [];
 				if (V.PC.counter.birthsTotal > 0) {
-					r.push(App.UI.DOM.makeElement("div", `<span class="red">A dull cramp runs down your middle.</span> You'll be giving birth soon.`));
+					r.push(App.UI.DOM.makeElement("span", `A dull cramp runs down your middle.`, "red"));
+					r.push(`You'll be giving birth soon.`);
 				} else {
-					r.push(App.UI.DOM.makeElement("div", `You begin to experience <span class="red">odd cramps</span> in your lower body. Contractions, more than likely.`));
+					r.push(`You begin to experience`);
+					r.push(App.UI.DOM.makeElement("span", `odd cramps`, "red"));
+					r.push(`in your lower body. Contractions, more than likely.`);
 				}
+				App.Events.addNode(el, r, "div");
+				r = [];
 			}
 			/*
 			if (V.dangerousPregnancy === 1 && V.PC.labor !== 1) {
-- 
GitLab