[PR #11956] [MERGED] Fixes #11929 - Strip whitespace from csv headers #13878

Closed
opened 2025-12-29 23:21:19 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11956
Author: @kkthxbye-code
Created: 3/10/2023
Status: Merged
Merged: 3/13/2023
Merged by: @jeremystretch

Base: developHead: 11929-strip-csv-whitespace


📝 Commits (2)

  • d75f2da Strip whitespace from csv headers
  • 291626a Move strip() call to parse_csv()

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 netbox/utilities/forms/utils.py (+1 -0)

📄 Description

Fixes: #11929

Not sure if there's a better way of doing this. Both the headers and records vars contain the headers. Tests passes, but not sure if there's some weird edge cases.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/11956 **Author:** [@kkthxbye-code](https://github.com/kkthxbye-code) **Created:** 3/10/2023 **Status:** ✅ Merged **Merged:** 3/13/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `11929-strip-csv-whitespace` --- ### 📝 Commits (2) - [`d75f2da`](https://github.com/netbox-community/netbox/commit/d75f2da72009bd8c1b2eecd6430ee608d3f75b90) Strip whitespace from csv headers - [`291626a`](https://github.com/netbox-community/netbox/commit/291626a999d9b2c673ede45b7e2d0445356206cc) Move strip() call to parse_csv() ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/forms/utils.py` (+1 -0) </details> ### 📄 Description ### Fixes: #11929 Not sure if there's a better way of doing this. Both the headers and records vars contain the headers. Tests passes, but not sure if there's some weird edge cases. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:21:19 +01:00
adam closed this issue 2025-12-29 23:21:19 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13878