[patch] updating description causes conversion of line endings
|Reported by:||stp||Owned by:||osimons|
Description (last modified by stp)
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
I'll attach a patch that converts the line endings to \r\n before updating the ticket in the database.
Change History (8)
Changed 6 years ago by stp
comment:3 Changed 4 years ago by stp
- Owner changed from athomas to osimons
- Priority changed from normal to highest
- Summary changed from updating description causes conversion of line endings to [patch] updating description causes conversion of line endings