taurus.core.util.sourcecode

Source code text utilities

Functions

fix_indentation(text)[source]

Replace tabs by spaces

get_eol_chars(text)[source]

Get text EOL characters

get_eol_chars_from_os_name(os_name)[source]

Return EOL characters from OS name

get_os_name_from_eol_chars(eol_chars)[source]

Return OS name from EOL characters

has_mixed_eol_chars(text)[source]

Detect if text has mixed EOL characters