TextFieldMapping.php has CRLF line Terminators

Created on 18 July 2024, 4 months ago
Updated 5 September 2024, 3 months ago

Problem/Motivation

I have a custom patch for WebformContentCreator/FieldMapping/TextFieldMapping.php and I am on a windows WSL system basically linux. I have been struggling to have my patch properly patch using composer cygwin. Finally found out its because this file I guess has Windows line endings.

patching file src/Plugin/WebformContentCreator/FieldMapping/TextFieldMapping.php

Hunk #1 FAILED at 58 (different line endings).

1 out of 1 hunk FAILED -- saving rejects to file src/Plugin/WebformContentCreator/FieldMapping/TextFieldMapping.php.rej

I am able to patch other files in this module just not this specific one. you see this by comparing TextFieldMapping.php to FieldMappingBase.php
/src/Plugin/WebformContentCreator/FieldMapping/TextFieldMapping.php: PHP script, ASCII text, with CRLF line terminators
vs.
/src/Plugin/FieldMappingBase.php: PHP script, ASCII text

Steps to reproduce

Proposed resolution

Remove windows line endings.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024