Handling of comments (Notes panel)

Tobia

New Member
Aug 31, 2016
12
2
3
I see that the text added to the Notes panel in the GUI is saved as a comment in the CT or VM config file, and vice versa.

But non-ascii characters are saved as URI-encoded UTF-8 bytes—a questionable approach, considering the underlying system is already UTF-8 based—and more importantly, newlines are encoded as %0A, resulting a single, long comment:
Code:
#This is a temporary container used to test the%0Anew deployment code.%0A%0APlease leave it running, but don't include it%0Ain automated backups.%0A%0A-Jake

I think it would be more useful and readable if newlines were split into separate comments, maybe with a leading space, like this:
Code:
# This is a temporary container used to test the
# new deployment code.
#
# Please leave it running, but don't include it
# in automated backups.
#
# -Jake

What do you think?

Which piece of code should I try to patch to make it behave more like this?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!