From: Mauro Carvalho Chehab Date: Sat, 9 Jul 2016 12:35:34 +0000 (-0300) Subject: doc-rst: parse-headers: remove trailing spaces X-Git-Tag: v4.14-rc1~2807^2^2~168 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb6fc6c9ac66fe5d4a50905fd7f2dd14cd9e7ab9;p=platform%2Fkernel%2Flinux-rpi.git doc-rst: parse-headers: remove trailing spaces The function that replace references add a "\ " at the end of references, to avoid the ReST markup parser to not identify them as references. That works fine except for the end of lines, as a sequence of { '\', ' ', '\n' } characters makes Sphinx to ignore the end of line. So, strip those escape/spaces at the end of lines. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/Documentation/sphinx/parse-headers.pl b/Documentation/sphinx/parse-headers.pl index 0a3703b..34bd9e2 100755 --- a/Documentation/sphinx/parse-headers.pl +++ b/Documentation/sphinx/parse-headers.pl @@ -303,6 +303,8 @@ foreach my $r (keys %typedefs) { $data =~ s/($start_delim)($r)$end_delim/$1$s$3/g; } +$data =~ s/\\ \n/\n/g; + # # Generate output file #