changeset 9217:9cdb6964c3a3

win32text: use reST syntax for literal blocks
author Martin Geisler <mg@lazybytes.net>
date Thu, 23 Jul 2009 00:26:26 +0200
parents 9b2649b6ce5c
children d3db87d68337
files hgext/win32text.py
diffstat 1 files changed, 17 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/win32text.py	Thu Jul 23 00:25:54 2009 +0200
+++ b/hgext/win32text.py	Thu Jul 23 00:26:26 2009 +0200
@@ -7,30 +7,30 @@
 
 '''perform automatic newline conversion
 
-To perform automatic newline conversion, use:
+To perform automatic newline conversion, use::
 
-[extensions]
-hgext.win32text =
-[encode]
-** = cleverencode:
-# or ** = macencode:
+  [extensions]
+  hgext.win32text =
+  [encode]
+  ** = cleverencode:
+  # or ** = macencode:
 
-[decode]
-** = cleverdecode:
-# or ** = macdecode:
+  [decode]
+  ** = cleverdecode:
+  # or ** = macdecode:
 
-If not doing conversion, to make sure you do not commit CRLF/CR by accident:
+If not doing conversion, to make sure you do not commit CRLF/CR by accident::
 
-[hooks]
-pretxncommit.crlf = python:hgext.win32text.forbidcrlf
-# or pretxncommit.cr = python:hgext.win32text.forbidcr
+  [hooks]
+  pretxncommit.crlf = python:hgext.win32text.forbidcrlf
+  # or pretxncommit.cr = python:hgext.win32text.forbidcr
 
 To do the same check on a server to prevent CRLF/CR from being
-pushed or pulled:
+pushed or pulled::
 
-[hooks]
-pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
-# or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
+  [hooks]
+  pretxnchangegroup.crlf = python:hgext.win32text.forbidcrlf
+  # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
 '''
 
 from mercurial.i18n import _