Răsfoiți Sursa

docs: with-lock: convert to proper admonition

Marian Beermann 8 ani în urmă
părinte
comite
09d0d566a5
1 a modificat fișierele cu 5 adăugiri și 3 ștergeri
  1. 5 3
      src/borg/archiver.py

+ 5 - 3
src/borg/archiver.py

@@ -3591,9 +3591,11 @@ class Archiver:
         for its termination, release the lock and return the user command's return
         for its termination, release the lock and return the user command's return
         code as borg's return code.
         code as borg's return code.
 
 
-        Note: if you copy a repository with the lock held, the lock will be present in
-              the copy, obviously. Thus, before using borg on the copy, you need to
-              use "borg break-lock" on it.
+        .. note::
+
+            If you copy a repository with the lock held, the lock will be present in
+            the copy, obviously. Thus, before using borg on the copy, you need to
+            use "borg break-lock" on it.
         """)
         """)
         subparser = subparsers.add_parser('with-lock', parents=[common_parser], add_help=False,
         subparser = subparsers.add_parser('with-lock', parents=[common_parser], add_help=False,
                                           description=self.do_with_lock.__doc__,
                                           description=self.do_with_lock.__doc__,