Use ellipsis in /log

Дилян Палаузов dilyan.palauzov at aegee.org
Sun May 5 11:49:49 CEST 2019


Hello,

I propose using … instead of ... in the /repo/log output.

Regards
  Дилян

diff --git a/ui-shared.c b/ui-shared.c
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -435,8 +435,8 @@ void cgit_commit_link(const char *name, const char *title, const char *class,
        html("'>");
        if (name[0] != '\0') {
                if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) {
-                       html_ntxt(name, ctx.cfg.max_msg_len - 3);
-                       html("...");
+                       html_ntxt(name, ctx.cfg.max_msg_len - 1);
+                       html("…");
                } else
                        html_txt(name);
        } else



More information about the CGit mailing list