.. _mixed-line-endings: mixed-line-endings / C0327 ========================== **Message emitted:** ``Mixed line endings LF and CRLF`` **Description:** *Used when there are mixed (LF and CRLF) newline signs in a file.* **Problematic code:** .. literalinclude:: /data/messages/m/mixed-line-endings/bad.py :language: python **Correct code:** ``full_crlf.py``: .. literalinclude:: /data/messages/m/mixed-line-endings/good/full_crlf.py :language: python ``full_lf.py``: .. literalinclude:: /data/messages/m/mixed-line-endings/good/full_lf.py :language: python **Related links:** - `History of CRLF and LF `_ - `Dealing with line endings in Git `_ - `A Collection of Useful .gitattributes Templates `_ Created by the `format `__ checker.