Skip to contentSkip to conversation

docs: admin-guide/sysctl: escape % symbols

PATCH In review Stephen Kitt 2 participants 3 messages Jun 24, 2022 – Jun 25, 2022 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: admin-guide/sysctl: escape % symbols

% symbols need to be escaped to render correctly here, do so.

---
 Documentation/admin-guide/sysctl/kernel.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysctl/kernel.rst +2 -2
index ddccd1077462..079a51ed88a9 100644
@@ -38,8 +38,8 @@ acct
 
 If BSD-style process accounting is enabled these values control
 its behaviour. If free space on filesystem where the log lives
-goes below ``lowwater``% accounting suspends. If free space gets
-above ``highwater``% accounting resumes. ``frequency`` determines
+goes below ``lowwater``\% accounting suspends. If free space gets
+above ``highwater``\% accounting resumes. ``frequency`` determines
 how often do we check the amount of free space (value is in
 seconds). Default:
 

base-commit: f2906aa863381afb0015a9eb7fefad885d4e5a56

Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 12 lines · Stephen Kitt

% symbols need to be escaped to render correctly here, do so.

---
 Documentation/admin-guide/sysctl/kernel.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/admin-guide/sysctl/kernel.rst +0 -0
index ddccd1077462..079a51ed88a9 100644

Documentation/admin-guide/sysctl/kernel.rst acct · line 44

Quoted 9 lines
Documentation/admin-guide/sysctl/kernel.rst +2 -2
@@ -38,8 +38,8 @@ acct
 
 If BSD-style process accounting is enabled these values control
 its behaviour. If free space on filesystem where the log lives
-goes below ``lowwater``% accounting suspends. If free space gets
-above ``highwater``% accounting resumes. ``frequency`` determines
+goes below ``lowwater``\% accounting suspends. If free space gets
+above ``highwater``\% accounting resumes. ``frequency`` determines
 how often do we check the amount of free space (value is in
 seconds). Default:

Interesting...I had to go digging into why this is, because "%" isn't really special for RST. The real problem is that ``literal`` markup needs to have word separators around it, and the recommended solution is to use "\ " instead.

So I'll apply this, but tweak the changelog and add the extra spaces.

Thanks,

jon

#2 lore raw
Quoted 28 lines · Jonathan Corbet
Quoted 15 lines · Stephen Kitt

% symbols need to be escaped to render correctly here, do so.

---
 Documentation/admin-guide/sysctl/kernel.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/Documentation/admin-guide/sysctl/kernel.rst index ddccd1077462..079a51ed88a9 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -38,8 +38,8 @@ acct

If BSD-style process accounting is enabled these values control its behaviour. If free space on filesystem where the log lives

Documentation/admin-guide/sysctl/kernel.rst acct · line 44

Quoted 6 lines
Documentation/admin-guide/sysctl/kernel.rst +2 -2
-goes below ``lowwater``% accounting suspends. If free space gets
-above ``highwater``% accounting resumes. ``frequency`` determines
+goes below ``lowwater``\% accounting suspends. If free space gets
+above ``highwater``\% accounting resumes. ``frequency`` determines
 how often do we check the amount of free space (value is in
 seconds). Default:  

Interesting...I had to go digging into why this is, because "%" isn't really special for RST. The real problem is that ``literal`` markup needs to have word separators around it, and the recommended solution is to use "\ " instead.

Quoted 1 line

So I'll apply this, but tweak the changelog and add the extra spaces.

Ah yes, thanks for looking into this!

Regards,

Stephen