From 69ae2d89e935dd42394015f36ae721f58bb33bb7 Mon Sep 17 00:00:00 2001 From: "stirlingbot[bot]" <195170888+stirlingbot[bot]@users.noreply.github.com> Date: Sun, 2 Nov 2025 20:52:08 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20format=20everything=20with=20pre?= =?UTF-8?q?-commit=20by=20stirlingbot=20(#4807)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-generated by [create-pull-request][1] with **stirlingbot** [1]: https://github.com/peter-evans/create-pull-request Signed-off-by: stirlingbot[bot] Co-authored-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com> --- .github/labels.yml | 2 +- .../SPDF/controller/api/misc/StampController.java | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/labels.yml b/.github/labels.yml index 4cda590cf..a6c354e58 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -186,4 +186,4 @@ description: "chatgpt AI generated code" - name: "break-change" color: "FF0000" - description: "This PR introduces a breaking API change." \ No newline at end of file + description: "This PR introduces a breaking API change." diff --git a/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java b/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java index 7539728cf..bbc47bcc5 100644 --- a/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java +++ b/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java @@ -256,10 +256,11 @@ public class StampController { int pageCount = document.getNumberOfPages(); - String processedStampText = stampText - .replace("@date", currentDate) - .replace("@time", currentTime) - .replace("@page_count", String.valueOf(pageCount)); + String processedStampText = + stampText + .replace("@date", currentDate) + .replace("@time", currentTime) + .replace("@page_count", String.valueOf(pageCount)); // Split the stampText into multiple lines String[] lines =