about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiOverview.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/LeiOverview.pm')
-rw-r--r--lib/PublicInbox/LeiOverview.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm
index 48237f8a..521bca50 100644
--- a/lib/PublicInbox/LeiOverview.pm
+++ b/lib/PublicInbox/LeiOverview.pm
@@ -176,7 +176,10 @@ sub _json_pretty {
                                         $pair =~ s/(null|"),"/$1, "/g;
                                         $pair;
                                 } @$v) . ']';
-                        } else { # references
+                        } elsif ($k eq 'kw') { # keywords are short, one-line
+                                $v = $json->encode($v);
+                                $v =~ s/","/", "/g;
+                        } else { # refs, labels, ...
                                 $v = '[' . join($sep, map {
                                         substr($json->encode([$_]), 1, -1);
                                 } @$v) . ']';