gtg icon indicating copy to clipboard operation
gtg copied to clipboard

Traceback catcher error popop GUI puts an extra set of backticks in the wrong place, preventing correct markup of the python-traceback?

Open nekohayo opened this issue 11 months ago • 1 comments

For version 0.6, in PR #582 @Neui reimplemented the traceback catcher that was broken in #247. Seems like it has been put to good use by many users since then!

However, when I look at the reports from many users here on GitHub, they often have the wrong formatting syntax applied (ticket 922 is an example of that), so I end up having to edit their description to fix the syntax (like in ticket 683, for example).

I am guessing that the code places an extra set of triple backtick marks in the wrong area, i.e. before the **Context:** blah blah line instead of only before the python-traceback part. Maybe there are other areas where it puts them in the wrong spot too?

nekohayo avatar Feb 26 '24 19:02 nekohayo

1000ᵗʰ issue! But I don't see how the backticks are inserted before the "Context" line. It seems they are done by the reporter themselves (or maybe GitHub when copy-pasting?).

https://github.com/getting-things-gnome/gtg/blob/66f9162780c3f09b70ce6f26e0438606d6c751bb/GTG/gtk/errorhandler.py#L112-L116

Neui avatar Feb 26 '24 21:02 Neui