[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#736119: fix



Here's a patch that fixes the problem.
-- 
David Gilman  :DG<
http://gilslotd.com
>From 10ffc72bea237b71823c7f684cbfb2b8a0512be8 Mon Sep 17 00:00:00 2001
From: David Gilman <dgilman@gilslotd.com>
Date: Sat, 22 Mar 2014 00:34:17 -0500
Subject: [PATCH] fix indentation in documentation

---
 doc/source/library/apt_pkg.rst | 110 ++++++++++++++++++++---------------------
 1 file changed, 55 insertions(+), 55 deletions(-)

diff --git a/doc/source/library/apt_pkg.rst b/doc/source/library/apt_pkg.rst
index d6ffaf4..44686d2 100644
--- a/doc/source/library/apt_pkg.rst
+++ b/doc/source/library/apt_pkg.rst
@@ -743,94 +743,94 @@ Resolving Dependencies with :class:`ProblemResolver`
 
             pkg.has_provides and not pkg.has_versions
 
-    .. attribute:: id
+   .. attribute:: id
 
-        The ID of the package. This can be used to store information about
-        the package. The ID is an int value.
+       The ID of the package. This can be used to store information about
+       the package. The ID is an int value.
 
-    .. attribute:: name
+   .. attribute:: name
 
-        This is the name of the package.
+       This is the name of the package.
 
-    .. attribute:: provides_list
+   .. attribute:: provides_list
 
-        A list of all package versions providing this package. Each element
-        of the list is a triplet, where the first element is the name of the
-        provided package, the second element the provided version (empty
-        string), and the third element the version providing this package
-        as a :class:`Version` object.
+       A list of all package versions providing this package. Each element
+       of the list is a triplet, where the first element is the name of the
+       provided package, the second element the provided version (empty
+       string), and the third element the version providing this package
+       as a :class:`Version` object.
 
-    .. attribute:: rev_depends_list
+   .. attribute:: rev_depends_list
 
-        An iterator of :class:`Dependency` objects for dependencies on this
-        package. The returned iterator is implemented by the class
-        :class:`DependencyList`:
+       An iterator of :class:`Dependency` objects for dependencies on this
+       package. The returned iterator is implemented by the class
+       :class:`DependencyList`:
 
-        .. class:: DependencyList
+       .. class:: DependencyList
 
-            A simple list-like type for representing multiple dependency
-            objects in an efficient manner; without having to generate
-            all Dependency objects in advance.
+           A simple list-like type for representing multiple dependency
+           objects in an efficient manner; without having to generate
+           all Dependency objects in advance.
 
-            .. describe:: list[index]
+           .. describe:: list[index]
 
-                Return the item at the position *index* in the list.
+               Return the item at the position *index* in the list.
 
-            .. method:: __len__()
+           .. method:: __len__()
 
-                The length of the list. This method should not be used
-                irectly, instead Python's built-in function :func:`len`
-                should be used.
+               The length of the list. This method should not be used
+               irectly, instead Python's built-in function :func:`len`
+               should be used.
 
-    .. attribute:: section
+   .. attribute:: section
 
-        The section of the package, as specified in the record. The list of
-        possible sections is defined in the Policy. This is a string.
+       The section of the package, as specified in the record. The list of
+       possible sections is defined in the Policy. This is a string.
 
-    .. attribute:: version_list
+   .. attribute:: version_list
 
-        A list of :class:`Version` objects for all versions of this package
-        available in the cache.
+       A list of :class:`Version` objects for all versions of this package
+       available in the cache.
 
-    **States**:
+   **States**:
 
-    .. attribute:: selected_state
+   .. attribute:: selected_state
 
-        The state we want it to be, ie. if you mark a package for installation,
-        this is :attr:`apt_pkg.SELSTATE_INSTALL`.
+       The state we want it to be, ie. if you mark a package for installation,
+       this is :attr:`apt_pkg.SELSTATE_INSTALL`.
 
-        See :ref:`SelStates` for a list of available states.
+       See :ref:`SelStates` for a list of available states.
 
-    .. attribute:: inst_state
+   .. attribute:: inst_state
 
-        The state the currently installed version is in. This is normally
-        :attr:`apt_pkg.INSTSTATE_OK`, unless the installation failed.
+       The state the currently installed version is in. This is normally
+       :attr:`apt_pkg.INSTSTATE_OK`, unless the installation failed.
 
-        See :ref:`InstStates` for a list of available states.
+       See :ref:`InstStates` for a list of available states.
 
-    .. attribute:: current_state
+   .. attribute:: current_state
 
-        The current state of the package (not installed, unpacked, installed,
-        etc). See :ref:`CurStates` for a list of available states.
+       The current state of the package (not installed, unpacked, installed,
+       etc). See :ref:`CurStates` for a list of available states.
 
-    **Flags**:
+   **Flags**:
 
-    .. attribute:: auto
+   .. attribute:: auto
 
-        This flag is here for compatibility purposes and does not appear to
-        be used anymore in APT. To find out whether a package is marked as
-        automatically installed, use :meth:`DepCache.is_auto_installed`
-        instead.
+       This flag is here for compatibility purposes and does not appear to
+       be used anymore in APT. To find out whether a package is marked as
+       automatically installed, use :meth:`DepCache.is_auto_installed`
+       instead.
 
-    .. attribute:: essential
+   .. attribute:: essential
 
-        Whether the package has the 'Essential' flag set; that is,
-        whether it has a field 'Essential: yes' in its record.
+       Whether the package has the 'Essential' flag set; that is,
+       whether it has a field 'Essential: yes' in its record.
 
-    .. attribute:: important
+   .. attribute:: important
 
-        Whether the package has the (obsolete) 'Important' flag set; that is,
-        whether it has a field 'Important: yes' in its record.
+       Whether the package has the (obsolete) 'Important' flag set; that is,
+       whether it has a field 'Important: yes' in its record.
 
 Example:
 ~~~~~~~~~
-- 
1.9.1


Reply to: