diff --git a/SOURCES/at-3.1.20-shell.patch b/SOURCES/at-3.1.20-shell.patch
index ac9586c..27f7d48 100644
--- a/SOURCES/at-3.1.20-shell.patch
+++ b/SOURCES/at-3.1.20-shell.patch
@@ -41,7 +41,7 @@ diff -up at-3.1.20/at.c.shell at-3.1.20/at.c
  	fprintf(stderr, "<EOT>\n");
      }
 -    fprintf(fp, "\n");
-+    fprintf(fp, "marcinDELIMITER%08lx\n", i);
++    fprintf(fp, "\nmarcinDELIMITER%08lx\n", i);
      if (ferror(fp))
  	panic("Output error");
      fflush(fp);
diff --git a/SPECS/at.spec b/SPECS/at.spec
index 5fdd581..1b20d24 100644
--- a/SPECS/at.spec
+++ b/SPECS/at.spec
@@ -3,7 +3,7 @@
 Summary:	Job spooling tools
 Name:		at
 Version:	3.1.23
-Release:	10%{?dist}
+Release:	11%{?dist}
 # http://packages.debian.org/changelogs/pool/main/a/at/current/copyright
 # + install-sh is MIT license with changes under Public Domain
 License:	GPLv3+ and GPLv2+ and ISC and MIT and Public Domain
@@ -166,6 +166,10 @@ chown root:root %{_localstatedir}/spool/at/.SEQ
 %attr(0644,root,root)		/%{_unitdir}/atd.service
 
 %changelog
+* Fri Apr 01 2022 Jan Staněk <jstanek@redhat.com> - 3.1.23-10
+- Add preceding newline to delimiter in at-3.1.20-shell.patch
+  Resolves: rhbz#2070858
+
 * Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com>
 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
   Related: rhbz#1991688