aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrik Salomonsson <plattfot@gmail.com>2020-05-04 11:18:52 -0700
committerFredrik Salomonsson <plattfot@gmail.com>2020-05-04 11:18:52 -0700
commit4b55dea9b1d00a5ea1a4dad08d1d70feb81d7f2d (patch)
tree001e5c82907576d86fcf1dcf02324877343a07a1
parentc7b00f13c3cddc452f102ebbd0a98946e6fd76df (diff)
downloadpinentry-rofi-4b55dea9b1d00a5ea1a4dad08d1d70feb81d7f2d.tar.gz
Replace %0A with &#10; instead of \\\\n (#4)
This should fix the newline issue. Thanks to @n0emis for pointing this out.
-rwxr-xr-xpinentry-rofi.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/pinentry-rofi.scm b/pinentry-rofi.scm
index 88e2162..8dcfb09 100755
--- a/pinentry-rofi.scm
+++ b/pinentry-rofi.scm
@@ -60,8 +60,8 @@
(string=? str ""))
(define (html-newline str)
- "Replace \\\\n with &#10;"
- (regexp-substitute/global #f "\\\\n" str 'pre "&#10;" 'post))
+ "Replace %0A with &#10;"
+ (regexp-substitute/global #f "%0A" str 'pre "&#10;" 'post))
(define (html-< str)
"Replace < with &lt;"