This is an automatic generated email to let you know that the following patch 
were queued:

Subject: [media] v4l: doc: Remove row numbers from tables
Author:  Laurent Pinchart <laurent.pinch...@ideasonboard.com>
Date:    Mon Sep 5 08:44:34 2016 -0300

Shorten the tables by removing row numbers in comments, allowing for
later insertion of rows with minimal diffs.

All changes have been generated by the following script.

import io
import re
import sys

def process_table(fname, data):
        if fname.endswith('hist-v4l2.rst'):
                data = re.sub(u'\n{1,2}\t( ?)  -( ?) ?', u'\n\t\\1 -\\2', data, 
flags = re.MULTILINE)
                data = re.sub(u'\n(\t|       )-  \.\. row [0-9]+\n\t  ?-( ?) 
?', u'\\1* -\\2', data, flags = re.MULTILINE)
        else:
                data = re.sub(u'\n{1,2}       -( ?) ?', u'\n      -\\1', data, 
flags = re.MULTILINE)
                data = re.sub(u'(\n?)(\n\n    -  \.\. row 1\n)', u'\n\\2', 
data, flags = re.MULTILINE)
                data = re.sub(u'\n    -  \.\. row [0-9]+\n      -( ?) ?', u'    
* -\\1', data, flags = re.MULTILINE)
                data = re.sub(u'\n    -  \.\. row [0-9]+\n       \.\. 
(_[A-Z0-9_`-]*:)', u'\n    -  .. \\1', data, flags = re.MULTILINE)
                data = re.sub(u'\n    -  \.\. (_[A-Z0-9_`-]*:)\n      -', u'    
* .. \\1\n\n      -', data, flags = re.MULTILINE)
                data = re.sub(u'^       - ', u'      -', data, flags = 
re.MULTILINE)
                data = re.sub(u'^(\t{1,2})  ', u'\\1', data, flags = 
re.MULTILINE)

        return data

def process_file(fname, data):
        buf = io.StringIO(data)
        output = ''
        in_table = False
        table_separator = 0

        for line in buf.readlines():
                if line.find('.. flat-table::') != -1:
                        in_table = True
                        table = ''
                elif in_table and not re.match('^[\t\n]|(    )', line):
                        in_table = False
                        output += process_table(fname, table)

                if in_table:
                        table += line
                else:
                        output += line

        if in_table:
                in_table = False
                output += process_table(fname, table)

        return output

fname = sys.argv[1]

data = file(fname, 'rb').read().decode('utf-8')
data = process_file(fname, data)
file(fname, 'wb').write(data.encode('utf-8'))

Signed-off-by: Laurent Pinchart <laurent.pinch...@ideasonboard.com>

 Documentation/media/uapi/v4l/buffer.rst            |  1337 +-
 Documentation/media/uapi/v4l/control.rst           |   133 +-
 Documentation/media/uapi/v4l/dev-raw-vbi.rst       |   243 +-
 Documentation/media/uapi/v4l/dev-rds.rst           |   191 +-
 Documentation/media/uapi/v4l/dev-sdr.rst           |    43 +-
 Documentation/media/uapi/v4l/dev-sliced-vbi.rst    |   730 +-
 Documentation/media/uapi/v4l/dev-subdev.rst        |   114 +-
 Documentation/media/uapi/v4l/diff-v4l.rst          |   676 +-
 Documentation/media/uapi/v4l/extended-controls.rst |  3085 +---
 Documentation/media/uapi/v4l/field-order.rst       |   188 +-
 Documentation/media/uapi/v4l/hist-v4l2.rst         |   231 +-
 Documentation/media/uapi/v4l/pixfmt-002.rst        |   298 +-
 Documentation/media/uapi/v4l/pixfmt-003.rst        |   195 +-
 Documentation/media/uapi/v4l/pixfmt-006.rst        |   306 +-
 Documentation/media/uapi/v4l/pixfmt-007.rst        |   495 +-
 Documentation/media/uapi/v4l/pixfmt-013.rst        |   186 +-
 Documentation/media/uapi/v4l/pixfmt-grey.rst       |    68 +-
 Documentation/media/uapi/v4l/pixfmt-indexed.rst    |    82 +-
 Documentation/media/uapi/v4l/pixfmt-m420.rst       |   249 +-
 Documentation/media/uapi/v4l/pixfmt-nv12.rst       |   248 +-
 Documentation/media/uapi/v4l/pixfmt-nv12m.rst      |   255 +-
 Documentation/media/uapi/v4l/pixfmt-nv16.rst       |   320 +-
 Documentation/media/uapi/v4l/pixfmt-nv16m.rst      |   325 +-
 Documentation/media/uapi/v4l/pixfmt-nv24.rst       |   183 +-
 Documentation/media/uapi/v4l/pixfmt-packed-rgb.rst |  2134 +--
 Documentation/media/uapi/v4l/pixfmt-packed-yuv.rst |   439 +-
 Documentation/media/uapi/v4l/pixfmt-reserved.rst   |   539 +-
 Documentation/media/uapi/v4l/pixfmt-sbggr16.rst    |   115 +-
 Documentation/media/uapi/v4l/pixfmt-sdr-cs08.rst   |    16 +-
 Documentation/media/uapi/v4l/pixfmt-sdr-cs14le.rst |    21 +-
 Documentation/media/uapi/v4l/pixfmt-sdr-cu08.rst   |    15 +-
 Documentation/media/uapi/v4l/pixfmt-sdr-cu16le.rst |    21 +-
 Documentation/media/uapi/v4l/pixfmt-sdr-ru12le.rst |    11 +-
 Documentation/media/uapi/v4l/pixfmt-srggb10.rst    |   116 +-
 Documentation/media/uapi/v4l/pixfmt-srggb10p.rst   |    87 +-
 Documentation/media/uapi/v4l/pixfmt-srggb12.rst    |   116 +-
 Documentation/media/uapi/v4l/pixfmt-srggb8.rst     |    68 +-
 Documentation/media/uapi/v4l/pixfmt-tch-td08.rst   |    68 +-
 Documentation/media/uapi/v4l/pixfmt-tch-td16.rst   |   116 +-
 Documentation/media/uapi/v4l/pixfmt-tch-tu08.rst   |    68 +-
 Documentation/media/uapi/v4l/pixfmt-tch-tu16.rst   |   116 +-
 Documentation/media/uapi/v4l/pixfmt-uv8.rst        |    68 +-
 Documentation/media/uapi/v4l/pixfmt-uyvy.rst       |   228 +-
 Documentation/media/uapi/v4l/pixfmt-vyuy.rst       |   228 +-
 Documentation/media/uapi/v4l/pixfmt-y10.rst        |   116 +-
 Documentation/media/uapi/v4l/pixfmt-y10b.rst       |    16 +-
 Documentation/media/uapi/v4l/pixfmt-y12.rst        |   116 +-
 Documentation/media/uapi/v4l/pixfmt-y12i.rst       |    11 +-
 Documentation/media/uapi/v4l/pixfmt-y16-be.rst     |   116 +-
 Documentation/media/uapi/v4l/pixfmt-y16.rst        |   116 +-
 Documentation/media/uapi/v4l/pixfmt-y41p.rst       |   336 +-
 Documentation/media/uapi/v4l/pixfmt-y8i.rst        |   116 +-
 Documentation/media/uapi/v4l/pixfmt-yuv410.rst     |   228 +-
 Documentation/media/uapi/v4l/pixfmt-yuv411p.rst    |   230 +-
 Documentation/media/uapi/v4l/pixfmt-yuv420.rst     |   273 +-
 Documentation/media/uapi/v4l/pixfmt-yuv420m.rst    |   283 +-
 Documentation/media/uapi/v4l/pixfmt-yuv422m.rst    |   278 +-
 Documentation/media/uapi/v4l/pixfmt-yuv422p.rst    |   268 +-
 Documentation/media/uapi/v4l/pixfmt-yuv444m.rst    |   298 +-
 Documentation/media/uapi/v4l/pixfmt-yuyv.rst       |   238 +-
 Documentation/media/uapi/v4l/pixfmt-yvyu.rst       |   228 +-
 Documentation/media/uapi/v4l/pixfmt-z16.rst        |   116 +-
 Documentation/media/uapi/v4l/subdev-formats.rst    | 18392 +++++++------------
 .../media/uapi/v4l/v4l2-selection-flags.rst        |    84 +-
 .../media/uapi/v4l/v4l2-selection-targets.rst      |   171 +-
 .../media/uapi/v4l/vidioc-create-bufs.rst          |    73 +-
 Documentation/media/uapi/v4l/vidioc-cropcap.rst    |   128 +-
 .../media/uapi/v4l/vidioc-dbg-g-chip-info.rst      |   123 +-
 .../media/uapi/v4l/vidioc-dbg-g-register.rst       |   117 +-
 .../media/uapi/v4l/vidioc-decoder-cmd.rst          |   292 +-
 Documentation/media/uapi/v4l/vidioc-dqevent.rst    |   668 +-
 .../media/uapi/v4l/vidioc-dv-timings-cap.rst       |   233 +-
 .../media/uapi/v4l/vidioc-encoder-cmd.rst          |   134 +-
 .../media/uapi/v4l/vidioc-enum-dv-timings.rst      |    50 +-
 Documentation/media/uapi/v4l/vidioc-enum-fmt.rst   |   142 +-
 .../media/uapi/v4l/vidioc-enum-frameintervals.rst  |   184 +-
 .../media/uapi/v4l/vidioc-enum-framesizes.rst      |   213 +-
 .../media/uapi/v4l/vidioc-enum-freq-bands.rst      |   187 +-
 Documentation/media/uapi/v4l/vidioc-enuminput.rst  |   437 +-
 Documentation/media/uapi/v4l/vidioc-enumoutput.rst |   208 +-
 Documentation/media/uapi/v4l/vidioc-enumstd.rst    |   292 +-
 Documentation/media/uapi/v4l/vidioc-expbuf.rst     |    90 +-
 Documentation/media/uapi/v4l/vidioc-g-audio.rst    |   102 +-
 Documentation/media/uapi/v4l/vidioc-g-audioout.rst |    65 +-
 Documentation/media/uapi/v4l/vidioc-g-crop.rst     |    30 +-
 Documentation/media/uapi/v4l/vidioc-g-ctrl.rst     |    22 +-
 .../media/uapi/v4l/vidioc-g-dv-timings.rst         |   465 +-
 Documentation/media/uapi/v4l/vidioc-g-edid.rst     |    73 +-
 .../media/uapi/v4l/vidioc-g-enc-index.rst          |   167 +-
 .../media/uapi/v4l/vidioc-g-ext-ctrls.rst          |   538 +-
 Documentation/media/uapi/v4l/vidioc-g-fbuf.rst     |   593 +-
 Documentation/media/uapi/v4l/vidioc-g-fmt.rst      |   128 +-
 .../media/uapi/v4l/vidioc-g-frequency.rst          |    74 +-
 Documentation/media/uapi/v4l/vidioc-g-jpegcomp.rst |   144 +-
 .../media/uapi/v4l/vidioc-g-modulator.rst          |   268 +-
 Documentation/media/uapi/v4l/vidioc-g-parm.rst     |   372 +-
 Documentation/media/uapi/v4l/vidioc-g-priority.rst |    73 +-
 .../media/uapi/v4l/vidioc-g-selection.rst          |    63 +-
 .../media/uapi/v4l/vidioc-g-sliced-vbi-cap.rst     |   312 +-
 Documentation/media/uapi/v4l/vidioc-g-tuner.rst    |   897 +-
 Documentation/media/uapi/v4l/vidioc-querycap.rst   |   555 +-
 Documentation/media/uapi/v4l/vidioc-queryctrl.rst  |   975 +-
 Documentation/media/uapi/v4l/vidioc-reqbufs.rst    |    54 +-
 .../media/uapi/v4l/vidioc-s-hw-freq-seek.rst       |   132 +-
 .../uapi/v4l/vidioc-subdev-enum-frame-interval.rst |    94 +-
 .../uapi/v4l/vidioc-subdev-enum-frame-size.rst     |   105 +-
 .../uapi/v4l/vidioc-subdev-enum-mbus-code.rst      |    61 +-
 .../media/uapi/v4l/vidioc-subdev-g-crop.rst        |    48 +-
 .../media/uapi/v4l/vidioc-subdev-g-fmt.rst         |    72 +-
 .../uapi/v4l/vidioc-subdev-g-frame-interval.rst    |    35 +-
 .../media/uapi/v4l/vidioc-subdev-g-selection.rst   |    70 +-
 .../media/uapi/v4l/vidioc-subscribe-event.rst      |   120 +-
 112 files changed, 15726 insertions(+), 31353 deletions(-)

---

<diff discarded since it is too big>

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to