summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Damsgaard <anders@adamsgaard.dk>2022-05-02 14:46:25 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2022-05-02 20:07:19 +0200
commit06cd065b6e4ee41d893caae5200bf276ae6a12bd (patch)
tree283757539b7fcc97e9f47823c9cd2178b750835f
parentc3f5dcec10b0ce7042cca38c90f54e86d1297cb6 (diff)
manual pages: properly escape backslashes
From the mdoc(7) extended introduction[0]: >To output a backslash, use the escape sequence ā€˜\eā€™. Never use the >escape sequence ā€˜\\ā€™ in any context. 0: https://mandoc.bsd.lv/mdoc/intro/escaping.html
-rw-r--r--sfeed.14
-rw-r--r--sfeed.54
-rw-r--r--sfeedrc.52
3 files changed, 5 insertions, 5 deletions
diff --git a/sfeed.1 b/sfeed.1
index 70354e3..34cd5fb 100644
--- a/sfeed.1
+++ b/sfeed.1
@@ -23,8 +23,8 @@ SPACE character.
Control characters are removed.
.Pp
The content field can contain newlines and these are escaped.
-TABs, newlines and '\\' are escaped with '\\', so it becomes: '\\t', '\\n'
-and '\\\\'.
+TABs, newlines and '\e' are escaped with '\e', so it becomes: '\et', '\en'
+and '\e\e'.
Other whitespace characters except spaces are removed.
Control characters are removed.
.Pp
diff --git a/sfeed.5 b/sfeed.5
index cd422d0..8b2638e 100644
--- a/sfeed.5
+++ b/sfeed.5
@@ -17,8 +17,8 @@ SPACE character.
Control characters are removed.
.Pp
The content field can contain newlines and these are escaped.
-TABs, newlines and '\\' are escaped with '\\', so it becomes: '\\t', '\\n'
-and '\\\\'.
+TABs, newlines and '\e' are escaped with '\e', so it becomes: '\et', '\en'
+and '\e\e'.
Other whitespace characters except spaces are removed.
Control characters are removed.
.Pp
diff --git a/sfeedrc.5 b/sfeedrc.5
index 95ffc04..10c234e 100644
--- a/sfeedrc.5
+++ b/sfeedrc.5
@@ -160,7 +160,7 @@ file:
# fetch(name, url, feedfile)
fetch() {
# allow for 1 redirect, hide User-Agent, timeout is 15 seconds.
- curl -L --max-redirs 1 -H "User-Agent:" -f -s -m 15 \\
+ curl -L --max-redirs 1 -H "User-Agent:" -f -s -m 15 \e
"$2" 2>/dev/null
}
.Ed