From 939cb992a1022bbd8a724c7ca404a646f0b59c1d Mon Sep 17 00:00:00 2001 From: kpj Date: Fri, 31 Jul 2015 11:50:29 -0400 Subject: [PATCH] Make details bold --- lib/LaTeXML/Common/Error.pm | 1 + lib/LaTeXML/Core/State.pm | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/LaTeXML/Common/Error.pm b/lib/LaTeXML/Common/Error.pm index e8ffaa83d..78ca9e825 100644 --- a/lib/LaTeXML/Common/Error.pm +++ b/lib/LaTeXML/Common/Error.pm @@ -38,6 +38,7 @@ sub colorizeString { my $out = colored($string, $alias); return $out; } +coloralias('details', 'bold'); coloralias('success', 'green'); coloralias('info', 'blue'); coloralias('warning', 'yellow'); diff --git a/lib/LaTeXML/Core/State.pm b/lib/LaTeXML/Core/State.pm index b4c7785e3..9edd2ce94 100644 --- a/lib/LaTeXML/Core/State.pm +++ b/lib/LaTeXML/Core/State.pm @@ -576,12 +576,12 @@ sub getStatusMessage { if $$status{fatal}; my @undef = ($$status{undefined} ? keys %{ $$status{undefined} } : ()); - push(@report, scalar(@undef) . " undefined macro" . (@undef > 1 ? 's' : '') - . "[" . join(', ', @undef) . "]") + push(@report, colorizeString(scalar(@undef) . " undefined macro" . (@undef > 1 ? 's' : '') + . "[" . join(', ', @undef) . "]", 'details')) if @undef; my @miss = ($$status{missing} ? keys %{ $$status{missing} } : ()); - push(@report, scalar(@miss) . " missing file" . (@miss > 1 ? 's' : '') - . "[" . join(', ', @miss) . "]") + push(@report, colorizeString(scalar(@miss) . " missing file" . (@miss > 1 ? 's' : '') + . "[" . join(', ', @miss) . "]", 'details')) if @miss; return join('; ', @report) || colorizeString('No obvious problems', 'success'); }