summaryrefslogtreecommitdiffstats
path: root/Documentation/sphinx/parse-headers.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-09 14:35:34 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-07-09 14:42:31 +0200
commitfb6fc6c9ac66fe5d4a50905fd7f2dd14cd9e7ab9 (patch)
tree29c47a7a21563a6f4a3b818f6aa1a9c2c8642e5e /Documentation/sphinx/parse-headers.pl
parent[media] doc-rst: Add new types to media-types.rst (diff)
downloadlinux-fb6fc6c9ac66fe5d4a50905fd7f2dd14cd9e7ab9.tar.xz
linux-fb6fc6c9ac66fe5d4a50905fd7f2dd14cd9e7ab9.zip
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 <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/sphinx/parse-headers.pl')
-rwxr-xr-xDocumentation/sphinx/parse-headers.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/sphinx/parse-headers.pl b/Documentation/sphinx/parse-headers.pl
index 0a3703bef5eb..34bd9e2630b0 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
#