Skip to content

Commit 109350e

Browse files
Merge 25.3 to 25.7
2 parents 04455f1 + 26555f1 commit 109350e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

snd/src/org/labkey/snd/SNDManager.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3420,7 +3420,12 @@ private String generateEventDataNarrative(Container c, User u, Event event, Even
34203420
value = "<span class='" + AttributeData.ATTRIBUTE_DATA_CSS_CLASS + "'>" + value + "</span>";
34213421
}
34223422

3423-
eventDataNarrative = new StringBuilder(eventDataNarrative.toString().replace("{" + pd.getName() + "}", value));
3423+
// Trim any spaces immediately inside '{' and '}' to make tokens like "{ route 2}" -> "{route 2}"
3424+
String normalized = eventDataNarrative.toString()
3425+
.replaceAll("\\{\\s+", "{")
3426+
.replaceAll("\\s+\\}", "}");
3427+
3428+
eventDataNarrative = new StringBuilder(normalized.replace("{" + pd.getName() + "}", value));
34243429
}
34253430
}
34263431

0 commit comments

Comments
 (0)