2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00
linux-next/Documentation/linux_tv
Mauro Carvalho Chehab eba9e91c48 doc-rst: linux_tv: Fix some occurences of :sub:
The right way to use it seems to do suscript is to use
this pattern: "\ :sub:"

Make sure all places of the media document will fit, by
using this script:

$n=0;
while (<>) {
	$n++;
	$t = $_;
	@matches = $t =~ m/(..\:sub\:)/g;
	foreach my $m (@matches) {
		$m =~ m/(.)(.)(\:sub\:)/;
		$s1=$1;
		$s2=$2;
		$s3=$3;
		next if (($s1 eq "\\") && ($s2 eq " "));
		if ($s2 eq " ") {
			$t =~ s/$s1$s2$s3/$s1\\$s2$s3/;
			next;
		}
		$t =~ s/$s1$s2$s3/$s1$s2\\ $s3/;
	}
	print $t;
}

And running it with:

for i in $(git grep -l sub Documentation/linux_tv/); do ./sub.pl $i >a && mv a $i; done

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-04 10:02:02 -03:00
..
media doc-rst: linux_tv: Fix some occurences of :sub: 2016-07-04 10:02:02 -03:00
media_api_files
audio.h.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00
ca.h.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00
conf.py doc-rst: linuxt_tv: update the documentation year 2016-06-30 16:45:17 -03:00
dmx.h.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00
frontend.h.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00
index.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00
net.h.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00
video.h.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00
videodev2.h.rst doc-rst: linux_tv: remove trailing comments 2016-07-03 17:47:40 -03:00