Skip to contentSkip to conversation

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

PATCH New Duncan Roe 1 participant 1 message Sep 3, 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