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:
I think it would be more useful and readable if newlines were split into separate comments, maybe with a leading space, like this:
What do you think?
Which piece of code should I try to patch to make it behave more like this?
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?