X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Faction_show_graph.c;h=7b3c93af9291fcd6d45b7767ae8d31462e83f912;hb=aaf63df27b244028582cfd078e82189110501043;hp=5aaf25afc2f4757b5d42739476da078f0491e652;hpb=173727f52463a5e2f60e7363456f90905d67e669;p=collection4.git diff --git a/src/action_show_graph.c b/src/action_show_graph.c index 5aaf25a..7b3c93a 100644 --- a/src/action_show_graph.c +++ b/src/action_show_graph.c @@ -28,7 +28,8 @@ struct show_graph_data_s }; typedef struct show_graph_data_s show_graph_data_t; -static void show_breadcrump_field (const char *str) /* {{{ */ +static void show_breadcrump_field (const char *str, /* {{{ */ + const char *field_name) { if ((str == NULL) || (str[0] == 0)) printf ("none"); @@ -39,8 +40,14 @@ static void show_breadcrump_field (const char *str) /* {{{ */ else { char *str_html = html_escape (str); - printf ("%s", - script_name (), str_html, str_html); + + if (field_name != NULL) + printf ("%s", + script_name (), field_name, str_html, str_html); + else + printf ("%s", + script_name (), str_html, str_html); + free (str_html); } } /* }}} void show_breadcrump_field */ @@ -62,15 +69,15 @@ static int show_breadcrump (show_graph_data_t *data) /* {{{ */ } printf ("