diff --git a/po/diff_po.pl b/po/diff_po.pl index 857b96aae2..30ca28dcf2 100755 --- a/po/diff_po.pl +++ b/po/diff_po.pl @@ -42,7 +42,7 @@ my %newMessages = (); # new po-file my %Untranslated = (); # inside new po-file my %Fuzzy = (); # inside new po-file my $result = 0; # exit value -my $printlines = 0; +my $printlines = 1; my @names = (); # Check first, if called as standalone program for git @@ -146,7 +146,7 @@ sub diff_po($$) } } - if (1) { + if (0) { @MsgKeys = sort keys %Messages, keys %newMessages; for my $k (@MsgKeys) { if (defined($Messages{$k})) { diff --git a/src/Format.cpp b/src/Format.cpp index 4b6e134941..f031b6806d 100644 --- a/src/Format.cpp +++ b/src/Format.cpp @@ -388,7 +388,7 @@ string Formats::getFormatFromFile(FileName const & filename) const filename.toFilesystemEncoding().c_str()); mime = token(mime, ';', 0); // we need our own ps/eps detection - if (mime != "application/postscript") { + if ((mime != "application/postscript") && (mime != "text/plain")) { Formats::const_iterator cit = find_if(formatlist.begin(), formatlist.end(), FormatMimeEqual(mime));