Skip to content
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

Add new line to end of file when rendering #2

Closed
wants to merge 3 commits into from

Conversation

ben-hudson
Copy link
Owner

Closes rhgrant10#21

@ben-hudson
Copy link
Owner Author

Hey @PatrickOHara, if you're interested in merging your PR could you fix the conflicts with my fork?

@PatrickOHara
Copy link

Hi @ben-hudson, its been a few years since I looked at this code and I'm not sure which branch is correct. Any ideas?

p.s. I also made a fix on this PR which you might like to merge in: rhgrant10#19

return tuple(items)

def unpack(self, container):
return tuple(container)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember the reason why I included this class, but it has something to do with this PR: rhgrant10#19

@ben-hudson
Copy link
Owner Author

Hi @ben-hudson, its been a few years since I looked at this code and I'm not sure which branch is correct. Any ideas?

I have no idea either, I can take a look at the merge conflicts and take my best guess. Do you remember what this PR was for?

I have your other PR (the edge_list one) since I only forked recently

@@ -238,7 +238,7 @@ class AdjacencyListField(TransformerField):
def build_transformer(cls):
return T.MapT(key=T.FuncT(func=int),
value=T.ListT(value=T.FuncT(func=int)),
sep="\n",
sep=('-1', ' -1\n'),
Copy link
Owner Author

@ben-hudson ben-hudson Jan 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what the implication is, but the conflict is on this line. I have

value=T.ListT(value=T.FuncT(func=int), terminal='-1'),
sep='\n',

and you have

value=T.ListT(value=T.FuncT(func=int)),
sep=('-1', ' -1\n'),

Subtle difference but I don't know what the implication is... I think I made the change so add a new line at the end of file when rendering

@ben-hudson ben-hudson closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rendering: append end of file with new line
2 participants