From: Mauro Carvalho Chehab Date: Tue, 16 Aug 2016 16:25:41 +0000 (-0300) Subject: docs-rst: parse-heraders.pl: escape LaTeX characters X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=999d998eee3dc1a4942b56f178be363844ea3729;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git docs-rst: parse-heraders.pl: escape LaTeX characters Let's escape the LaTeX characters, to avoid troubles when outputing them. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Jonathan Corbet --- diff --git a/Documentation/sphinx/parse-headers.pl b/Documentation/sphinx/parse-headers.pl index 34bd9e2630b0..74089b0da798 100755 --- a/Documentation/sphinx/parse-headers.pl +++ b/Documentation/sphinx/parse-headers.pl @@ -220,7 +220,7 @@ $data =~ s/\n\s+\n/\n\n/g; # # Add escape codes for special characters # -$data =~ s,([\_\`\*\<\>\&\\\\:\/\|]),\\$1,g; +$data =~ s,([\_\`\*\<\>\&\\\\:\/\|\%\$\#\{\}\~\^]),\\$1,g; $data =~ s,DEPRECATED,**DEPRECATED**,g;