[patch] updating description causes conversion of line endings
|Reported by:||Steffen Pingel||Owned by:||Odd Simon Simonsen|
|Cc:||Odd Simon Simonsen||Trac Release:||0.10|
Description (last modified by )
When a Trac ticket with an editable description that was previously edited in the web-interface is updated through Mylyn the description changes. This can be seen on ticket #2462 comment 3 for instance.
Line endings submitted through the web are encoded as \r\n. It appears that this is also the format that is stored in the Trac database. When strings are received through XML all line endings are normalized to \n. That means when a description is received by the XmlRpcPlugin all line breaks are encoded as \n. The next time the ticket is updated through the web they are converted back to \r\n.
The corresponding Mylyn bug is here:
213742: submit causes description to change https://bugs.eclipse.org/bugs/show_bug.cgi?id=213742
I'll attach a patch that converts the line endings to \r\n before updating the ticket in the database.
Change History (8)
comment:3 Changed 8 years ago by
|Owner:||changed from Alec Thomas to Odd Simon Simonsen|
|Priority:||normal → highest|
|Summary:||updating description causes conversion of line endings → [patch] updating description causes conversion of line endings|