Skip to contentSkip to conversation

build: doc: Fix rendering of verbatim '\n"' in man pages

PATCH Applied Duncan Roe 2 participants 2 messages Sep 5, 2021 – Sep 6, 2021 netfilter

lore
Share & tools
lore

Duncan Roe

author
#0 lore raw

PATCH 1/1 build: doc: Fix rendering of verbatim '\n"' in man pages

Without this patch, '\n"' rendered as '0' in e.g. man nfq_create_queue

---
 doxygen/build_man.sh | 4 ++++
 1 file changed, 4 insertions(+)
doxygen/build_man.sh +4 -0
index e0cda71..96c97d5 100755
@@ -69,6 +69,10 @@ post_process(){
     del_empty_det_desc
     del_def_at_lines
     fix_double_blanks
+
+    # Fix rendering of verbatim "\n" (in code snippets)
+    sed -i 's/\\n/\\\\n/' $target
+
   done
 
   remove_temp_files
Signature · 1 line
2.17.5
maintainer Applied
#1 lore raw
Quoted 1 line · Duncan Roe

Without this patch, '\n"' rendered as '0' in e.g. man nfq_create_queue

Applied, thanks.