nl2br for comments field #5069

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

Originally created by @christopheg on GitHub (Jul 17, 2021).

NetBox version

v2.11.6

Feature type

Change to existing functionality

Proposed functionality

The 'comments' field in a virtual machine should reflect the input.
When filling in comments with newlines, they don't appear in the interface.
The newlines should be replaced by
tags

Use case

better readable documentation

Database changes

No response

External dependencies

No response

Originally created by @christopheg on GitHub (Jul 17, 2021). ### NetBox version v2.11.6 ### Feature type Change to existing functionality ### Proposed functionality The 'comments' field in a virtual machine should reflect the input. When filling in comments with newlines, they don't appear in the interface. The newlines should be replaced by <br> tags ### Use case better readable documentation ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:23:46 +01:00
adam closed this issue 2025-12-29 19:23:46 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 19, 2021):

This is a function of Markdown. Ending a line with two trailing spaces will force a line break.

@jeremystretch commented on GitHub (Jul 19, 2021): This is a function of Markdown. Ending a line with two trailing spaces will force a line break.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5069