EOLFixer#
Newversion Index / Newversion / EOLFixer
Auto-generated documentation for newversion.eol_fixer module.
EOLFixer#
Converter between Unix and Windows line endings.
Signature#
EOLFixer.add_newline#
Show source in eol_fixer.py:63
Add newline character to the end if it is missing.
Signature#
EOLFixer.get_line_ending#
Show source in eol_fixer.py:56
Get line ending character.
Signature#
EOLFixer.is_crlf#
Show source in eol_fixer.py:14
Check whether text has `
` characters.
Arguments: text -- Text to check.
Signature#
EOLFixer.to_crlf#
Show source in eol_fixer.py:40
Convert `
to
`.
Arguments: text -- Text to convert.
Returns: Converted text.
Signature#
EOLFixer.to_lf#
Show source in eol_fixer.py:24
Convert `
to
`.
Arguments: text -- Text to convert.
Returns: Converted text.