[gimp/gimp-2-10] app: add a comment and some newlines before the debug data section.



commit 6829274dde88b4c23c497d15a3239833270dee4d
Author: Jehan <jehan girinstud io>
Date:   Mon Jul 5 16:36:28 2021 +0200

    app: add a comment and some newlines before the debug data section.
    
    The markdown triple-quote (```) has to be on its own at the start of a
    newline. Schumaml was telling me that too many reporters would paste
    just after some text, which would therefore break the markdown syntax.
    
    Instead let's add 3 newlines before the triple-quote, so that even
    people who would not hit the "Copy Bug Information" button (but instead
    select and copy) have a hint that these newlines are made on purpose.
    Also add a comment (which is discarded by Gitlab) to make this even more
    obvious.
    
    Then even when pasting just after some text on the same line, the
    triple-quote will end up on its own line.
    
    (cherry picked from commit d3105e5c722fee1e4332f42da87d879d271c69dd)

 app/widgets/gimpcriticaldialog.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpcriticaldialog.c b/app/widgets/gimpcriticaldialog.c
index 80c9314b7d..8a46465314 100644
--- a/app/widgets/gimpcriticaldialog.c
+++ b/app/widgets/gimpcriticaldialog.c
@@ -258,7 +258,9 @@ gimp_critical_dialog_constructed (GObject *object)
 
   buffer = gtk_text_buffer_new (NULL);
   version = gimp_version (TRUE, FALSE);
-  text = g_strdup_printf ("```\n%s\n```", version);
+  text = g_strdup_printf ("<!-- %s -->\n\n\n```\n%s\n```",
+                          _("Copy-paste this whole debug data to report to developers"),
+                          version);
   gtk_text_buffer_set_text (buffer, text, -1);
   g_free (version);
   g_free (text);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]