Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2
+2
Documentation/sphinx/parse-headers.pl
··· 303 303 $data =~ s/($start_delim)($r)$end_delim/$1$s$3/g; 304 304 } 305 305 306 + $data =~ s/\\ \n/\n/g; 307 + 306 308 # 307 309 # Generate output file 308 310 #