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

Export templates adds windows line break (CRLF - Carriage Return). #544

Closed
aabouzaid opened this issue Sep 9, 2016 · 0 comments
Closed
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@aabouzaid
Copy link

aabouzaid commented Sep 9, 2016

Hello,

I just used the example of "Export templates" in netbox documentation:

Admin panel > Extras > Export Templates

{% for d in queryset %}{% if d.status and d.primary_ip %}define host{
        use                     generic-switch
        host_name               {{ d.name }}
        address                 {{ d.primary_ip.address.ip }}
}
{% endif %}{% endfor %}

And the exported file has windows line break (CRLF - Carriage Return - "\r").

$ file netbox_devices
netbox_devices:       ASCII text, with CRLF line terminators

I think this shouldn't happen. And it should be Unix line terminators "\n".

Env info:

Netbox develop branch with latest docker image (docker compose).

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Sep 12, 2016
if-fi pushed a commit to if-fi/netbox that referenced this issue Oct 1, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants