[gnome-builder] plugins/clang: remove markup from optional params



commit ec3f771188e14dd301fe1c49ddca7e4c18e26d6b
Author: Christian Hergert <chergert redhat com>
Date:   Thu Sep 29 23:19:09 2022 -0700

    plugins/clang: remove markup from optional params
    
    We aren't using this sort of markup any longer, so just don't add it.

 src/plugins/clang/ide-clang-completion-item.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/ide-clang-completion-item.c b/src/plugins/clang/ide-clang-completion-item.c
index 6fcbd224e..ee949287f 100644
--- a/src/plugins/clang/ide-clang-completion-item.c
+++ b/src/plugins/clang/ide-clang-completion-item.c
@@ -222,7 +222,8 @@ ide_clang_completion_item_do_init (IdeClangCompletionItem *self)
           break;
 
         case CXCompletionChunk_Optional:
-          g_string_append_printf (markup, "<i>%s</i>", text);
+          if (!ide_str_empty0 (text))
+            g_string_append (markup, text);
           break;
 
         default:


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