Skip to content

Inconsistent cross-platform line breaks #111

Description

@bricksdont

I noticed that when I fork this repository and then make changes on a Mac machine, that git diff shows ^M characters at the end of lines:

-STATIC_URL = '/static/'
-STATIC_ROOT = os.path.join(BASE_DIR, 'static')
+FORCE_SCRIPT_NAME = '/service/appraise/'^M
+^M
+STATIC_URL = FORCE_SCRIPT_NAME + '/static/'^M
+STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')^M
+^M

I think this might be because the files are developed on Windows, and have Windows line endings. See for example: https://stackoverflow.com/a/26490990/1987598

Do you know of an easy way to avoid this?

Did you enable automatic line ending normalization with git (https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings?platform=windows)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions