From 3477c2f7f3619dfc17fff19e24b18a240addb251 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Tue, 3 May 2022 18:07:44 +0000 Subject: [PATCH] Add special IDs for each line ocontent --- sigPlace.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sigPlace.java b/sigPlace.java index fbe8c28..8ff4d51 100644 --- a/sigPlace.java +++ b/sigPlace.java @@ -23,7 +23,7 @@ public class sigPlace { new AbstractMap.SimpleEntry<>("$SITENAME", "SigPlace"), new AbstractMap.SimpleEntry<>("$SITE_BACKCOL", "#111"), new AbstractMap.SimpleEntry<>("$TITLE_CONTENT_START", "

"), - new AbstractMap.SimpleEntry<>("$TITLE_CONTENT_END", "

"), + new AbstractMap.SimpleEntry<>("$TITLE_CONTENT_END", "
"), new AbstractMap.SimpleEntry<>("$CONTENT_END", "
"), new AbstractMap.SimpleEntry<>("$DATE_CONTENT_START", "
") )); @@ -74,7 +74,8 @@ public class sigPlace { if (s.charAt(0)=='-') { //Start of a title piece. s=s.replace("-",map.get("$TITLE_CONTENT_START")); - s=s+map.get("$TITLE_CONTENT_END"); + s=s+map.get("$TITLE_CONTENT_END").replace("%ID%","id=\"content_"+i+"\""); + //Use ⤈ if there's more text to be shown than can fit. } else if (s.contains("===")) { s=map.get("$CONTENT_END")+map.get("$DATE_CONTENT_START")+s.replace("===","")+map.get("$CONTENT_END")+map.get("$CONTENT_END");