[media] vidioc-querycap.rst: Better format tables on PDF output
[cascardo/linux.git] / Documentation / media / uapi / v4l / vidioc-querycap.rst
index b10fed3..05d86b2 100644 (file)
@@ -43,11 +43,12 @@ specification the ioctl returns an ``EINVAL`` error code.
 
 .. _v4l2-capability:
 
+.. tabularcolumns:: |p{1.5cm}|p{2.5cm}|p{13cm}|
+
 .. flat-table:: struct v4l2_capability
     :header-rows:  0
     :stub-columns: 0
-    :widths:       1 1 2
-
+    :widths:       3 4 20
 
     -  .. row 1
 
@@ -117,17 +118,13 @@ specification the ioctl returns an ``EINVAL`` error code.
 
        -  :cspan:`2`
 
+         ``#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))``
 
-         .. code-block:: c
-
-             #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
+         ``__u32 version = KERNEL_VERSION(0, 8, 1);``
 
-             __u32 version = KERNEL_VERSION(0, 8, 1);
+         ``printf ("Version: %u.%u.%u\\n",``
 
-             printf ("Version: %u.%u.%u\\n",
-                 (version >> 16) & 0xFF,
-                 (version >> 8) & 0xFF,
-                  version & 0xFF);
+         ``(version >> 16) & 0xFF, (version >> 8) & 0xFF, version & 0xFF);``
 
     -  .. row 6
 
@@ -175,12 +172,15 @@ specification the ioctl returns an ``EINVAL`` error code.
 
 .. _device-capabilities:
 
+.. tabularcolumns:: |p{6cm}|p{2.2cm}|p{8.8cm}|
+
+.. cssclass:: longtable
+
 .. flat-table:: Device Capabilities Flags
     :header-rows:  0
     :stub-columns: 0
     :widths:       3 1 4
 
-
     -  .. row 1
 
        -  ``V4L2_CAP_VIDEO_CAPTURE``