]> git.karo-electronics.de Git - karo-tx-linux.git/commit
doc-rst: linux_tv: Fix some occurences of :sub:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 4 Jul 2016 12:04:31 +0000 (09:04 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 4 Jul 2016 13:02:02 +0000 (10:02 -0300)
commiteba9e91c4878d4f2de4c50bcd106bc42c3592b5b
tree8c7073c09427b35f7c562aceb473701446707897
parenta678a50ecd236b864aed92ebc839ebe8c996c05b
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>
Documentation/linux_tv/media/v4l/dev-sliced-vbi.rst
Documentation/linux_tv/media/v4l/pixfmt-m420.rst
Documentation/linux_tv/media/v4l/pixfmt-nv12.rst
Documentation/linux_tv/media/v4l/pixfmt-nv12m.rst
Documentation/linux_tv/media/v4l/pixfmt-nv16.rst
Documentation/linux_tv/media/v4l/pixfmt-nv16m.rst
Documentation/linux_tv/media/v4l/vidioc-enumstd.rst