diff -r 0d9e4ce1c010 Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Tue Aug 30 00:27:10 2011 +0200 +++ b/Doc/library/stdtypes.rst Tue Aug 30 22:05:02 2011 -0400 @@ -1327,6 +1327,31 @@ breaks are not included in the resulting list unless *keepends* is given and true. + Strings can have the following line boundaries: + + +-----------------------+-----------------------------+ + | Representation | Description | + +=======================+=============================+ + | ``"\n"`` | Line Feed | + +-----------------------+-----------------------------+ + | ``"\r"`` | Carriage Return | + +-----------------------+-----------------------------+ + | ``"\r\n"`` | Carriage Return + Line Feed | + +-----------------------+-----------------------------+ + | ``"\x0b"`` | Line Tabulation | + +-----------------------+-----------------------------+ + | ``"\x0c"`` | Form Feed | + +-----------------------+-----------------------------+ + | ``"\x85"`` | Next Line (C1 Control Code) | + +-----------------------+-----------------------------+ + | ``"\u2028"`` | Line Separator | + +-----------------------+-----------------------------+ + | ``"\u2029"`` | Paragraph Separator | + +-----------------------+-----------------------------+ + + .. versionchanged:: 3.2 + ``\x0b`` and ``\x0c`` added to list of line boundaries. + .. method:: str.startswith(prefix[, start[, end]])