From 633d5e2c10f356ce97e254cc3cc3725849de41b9 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sat, 3 Dec 2016 11:42:22 +0100 Subject: [PATCH] Enhance output of po_diff.pl to better see message-edges. --- po/diff_po.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/po/diff_po.pl b/po/diff_po.pl index a93fd4aafb..f47fbb6e5f 100755 --- a/po/diff_po.pl +++ b/po/diff_po.pl @@ -395,19 +395,19 @@ sub printDiff($$$$) print "diffline = " . $rM->{line} . "," . $rnM->{line} . "\n" if ($printlines); print " msgid = \"$k\"\n"; if ($rM->{fuzzy} eq $rnM->{fuzzy}) { - print " fuzzy = " . $rM->{fuzzy} . "\n" if ($printlines); + print " fuzzy = \"" . $rM->{fuzzy} . "\"\n" if ($printlines); } else { - print RED "< fuzzy = " . $rM->{fuzzy} . "\n", RESET; + print RED "< fuzzy = \"" . $rM->{fuzzy} . "\"\n", RESET; } - print RED "< msgstr = " . $rM->{msgstr} . "\n", RESET; + print RED "< msgstr = \"" . $rM->{msgstr} . "\"\n", RESET; if ($k ne $nk) { print GREEN "> msgid = \"$nk\"\n", RESET; } if ($rM->{fuzzy} ne $rnM->{fuzzy}) { - print GREEN "> fuzzy = " . $rnM->{fuzzy} . "\n", RESET; + print GREEN "> fuzzy = \"" . $rnM->{fuzzy} . "\"\n", RESET; } - print GREEN "> msgstr = " . $rnM->{msgstr} . "\n", RESET; + print GREEN "> msgstr = \"" . $rnM->{msgstr} . "\"\n", RESET; print "\n"; }