JetBrains / JetBrains/ForTea

Line endings in preprocessed templates not consistent

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
58
Forks
13
Avg merge
5h 4m
Merged PRs (30d)
7

Description

All lines resulting from a preprocessed template appear to correctly use system defined line endings except for those that are defined inside of a control block (`<# #>`).

Given a simple .tt file with all uniform line endings on Windows:
![image](https://user-images.githubusercontent.com/79565087/158890626-9c753e8d-60a9-4986-9f46-e34046552e80.png)

And then after running preprocess from Rider IDE, we can see in the `TransformText()` method that output line endings are not consistent:
![image](https://user-images.githubusercontent.com/79565087/158890551-93b8da7d-1c7b-45b5-a388-5a470caab1d5.png)

This was repro'd using Rider 2021.3.3 (bundle 2021.3.238). Switching project settings to use explicit line endings did not appear to have an effect. Screenshots are from Notepad++ for easy line ending visibility, but any actual manipulations were all done inside the Rider IDE.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.