Commit fb6fc6c9 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

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: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 2dd4f709
...@@ -303,6 +303,8 @@ foreach my $r (keys %typedefs) { ...@@ -303,6 +303,8 @@ foreach my $r (keys %typedefs) {
$data =~ s/($start_delim)($r)$end_delim/$1$s$3/g; $data =~ s/($start_delim)($r)$end_delim/$1$s$3/g;
} }
$data =~ s/\\ \n/\n/g;
# #
# Generate output file # Generate output file
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment