Mercurial > hg
comparison hgext/eol.py @ 14857:5b46c16e7121
eol: fix silly test-gendoc breakage by escaping control characters
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 12 Jul 2011 16:22:36 -0500 |
parents | 9f5cd6b6d758 |
children | ad6a58581ecd |
comparison
equal
deleted
inserted
replaced
14856:9f5cd6b6d758 | 14857:5b46c16e7121 |
---|---|
67 means that there is both ``CRLF`` and ``LF`` present in the file. | 67 means that there is both ``CRLF`` and ``LF`` present in the file. |
68 Such files are normally not touched under the assumption that they | 68 Such files are normally not touched under the assumption that they |
69 have mixed EOLs on purpose. | 69 have mixed EOLs on purpose. |
70 | 70 |
71 - ``eol.fix-trailing-newline`` (default False) can be set to True to | 71 - ``eol.fix-trailing-newline`` (default False) can be set to True to |
72 ensure that converted files end with a EOL character (either ``\n`` | 72 ensure that converted files end with a EOL character (either ``\\n`` |
73 or ``\r\n`` as per the configured patterns). | 73 or ``\\r\\n`` as per the configured patterns). |
74 | 74 |
75 The extension provides ``cleverencode:`` and ``cleverdecode:`` filters | 75 The extension provides ``cleverencode:`` and ``cleverdecode:`` filters |
76 like the deprecated win32text extension does. This means that you can | 76 like the deprecated win32text extension does. This means that you can |
77 disable win32text and enable eol and your filters will still work. You | 77 disable win32text and enable eol and your filters will still work. You |
78 only need to these filters until you have prepared a ``.hgeol`` file. | 78 only need to these filters until you have prepared a ``.hgeol`` file. |