Menu

#472 Description changed code block does not keep the whole text

open
nobody
markdown (8)
Tickets
2015-11-02
2015-10-28
Zangune
No

Greetings, if you create a code block in a ticket and edit the code part, then you will get a comment about the description changes with some part of the text that should be in the code block outside the code block itself.
Proper fix: include all the necessary text in the code block.
Workaround: hide the diff comment in the tracker, let the user to get the email and add a "last edited" note in the ticket description. This should be like how the wiki works right now.

How to reproduce
  • create a tracker: Admin - Tools - Tickets (here). Label "a", Url Path "a";
  • in the main menu click on "a", then Create a ticket, title "b" and description "c", plus a new line and a "d" between two lines of tildes, this way "d" will be in a code block (click here);
  • click on Edit;
  • substitute "d" with "e";
  • click Save.
What happens

In a new ticket comment, you can read "Description has changed:" a new line and then "Diff:", then these lines in a code block:

--- old
+++ new
@@ -1,5 +1,5 @@
 c


and the following two lines out of the code block:

-d
+e

What I suppose it should happen

"-d" and "+e" should be in the code block, too.

I would like to highlight that if instead of a, b,c,d and e you put markdown code, then the result can be huge text or missing tags, you should test it to understand it better

Discussion


Log in to post a comment.

MongoDB Logo MongoDB