Export CSV file with multiple lines in comments #3642

Closed
opened 2025-12-29 18:30:19 +01:00 by adam · 1 comment
Owner

Originally created by @thoms27 on GitHub (May 6, 2020).

Environment

  • Python version: 3.6
  • NetBox version: 2.8.0

Steps to Reproduce

When you export circuits from provider, and a circuit has multiple lines (with 2 spaces a the end of the line) in his comment field, a new line is created.

Expected Behavior

All lines in the comment field should be in the same column.

Observed Behavior

The others lines in the comment field create new lines in the export csv.

Originally created by @thoms27 on GitHub (May 6, 2020). ### Environment * Python version: 3.6 * NetBox version: 2.8.0 ### Steps to Reproduce When you export circuits from provider, and a circuit has multiple lines (with 2 spaces a the end of the line) in his comment field, a new line is created. ### Expected Behavior All lines in the comment field should be in the same column. ### Observed Behavior The others lines in the comment field create new lines in the export csv.
adam closed this issue 2025-12-29 18:30:19 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 6, 2020):

This is expected behavior. This is how line breaks within a column are expressed in CSV format. The string is encapsulated inside double quotes.

@jeremystretch commented on GitHub (May 6, 2020): This is expected behavior. This is how line breaks within a column are expressed in CSV format. The string is encapsulated inside double quotes.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3642