[PATCH libnetfilter_queue] build: doc: Fix rendering of verbatim '\n"' in man pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx>
---
 doxygen/build_man.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doxygen/build_man.sh b/doxygen/build_man.sh
index e0cda71..96c97d5 100755
--- a/doxygen/build_man.sh
+++ b/doxygen/build_man.sh
@@ -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
-- 
2.17.5




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux