-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T4 Template Creates 100s of Empty Lines #503
Comments
@tylerthardy thanks for the detailed explanation and discovery. Any chance you could make a PR which fixes this? |
I can not confirm this issue still exists in the current sources. Is the issue still valid? |
I'm not sure. I haven't used T4 templates in around 10 years, and never plan on using them again if I can help it. The T4 templates are around for people who love pain :) |
I'd vote to close this issue, then. It's abviously fixed in current development. |
Saw this one and decided to give it a go since it's up for grabs. Was able to generate the code exactly as we would manually i.e. no extra spaces or ill formatting. Anyway, long story short, the diff on the PetaPoco.Core.ttinclude file looks horrible. I want to create a pull request, will this be standing in the way? |
Normalize whitespace and code formatting. Add support for SQLite. Closes CollaboratingPlatypus#503
Normalize whitespace and code formatting. Add support for SQLite. Closes CollaboratingPlatypus#503
Background:
Obtained PetaPoco v5.1.306 from NuGet into .NET project, but also present using files from this repo.
Bug present in v5.1.306 but not in v5.1.89.
Issue, replication, cause, and resolution listed here. (No Pull Request; can't integration test.)
Issue:
Generating Database.cs from Database.tt adds 3-4 linebreaks after each line of generated code:
Steps to Replicate:
Cause:
End-of-lines in (old) v5.1.89 have a carriage return followed by linefeed (\r\n), while the end-of-lines in v5.1.306 only have a linefeed with no carriage return (\n).
Resolution:
Adding a carriage return before the linefeed on every line restores the functionality of v5.1.306 to that of v5.1.89.
The text was updated successfully, but these errors were encountered: