]> git.karo-electronics.de Git - linux-beck.git/commitdiff
doc-rst: parse-headers: remove trailing spaces
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 9 Jul 2016 12:35:34 +0000 (09:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 9 Jul 2016 12:42:31 +0000 (09:42 -0300)
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 <mchehab@s-opensource.com>
Documentation/sphinx/parse-headers.pl

index 0a3703bef5eb6687c69fddbd57339c57ddcd7948..34bd9e2630b0e7a8582edb226136c483199d354e 100755 (executable)
@@ -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
 #