From 11495bbb2bba6e3cdb69078625dc7c90bc443c39 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 18 Dec 2011 18:29:32 -0800 Subject: [PATCH] Use an ellipsis for Nitrox O2% ranges The plain dash may look a bit too much like a trimix specification. Is the ellipsis better? Maybe. Signed-off-by: Linus Torvalds --- divelist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/divelist.c b/divelist.c index f664cde..86e7daf 100644 --- a/divelist.c +++ b/divelist.c @@ -292,6 +292,8 @@ static gint nitrox_sort_func(GtkTreeModel *model, return a_he - b_he; } +#define UTF8_ELLIPSIS "\xE2\x80\xA6" + static void nitrox_data_func(GtkTreeViewColumn *col, GtkCellRenderer *renderer, GtkTreeModel *model, @@ -315,7 +317,7 @@ static void nitrox_data_func(GtkTreeViewColumn *col, if (o2 == o2low) snprintf(buffer, sizeof(buffer), "%d", o2); else - snprintf(buffer, sizeof(buffer), "%d-%d", o2low, o2); + snprintf(buffer, sizeof(buffer), "%d" UTF8_ELLIPSIS "%d", o2low, o2); else strcpy(buffer, "air"); -- 2.45.2