[LyX/master] lyxpaperview: take the first match

Juergen Spitzmueller spitz at lyx.org
Thu Aug 27 09:40:07 UTC 2020


commit 0d98fb85489de9128dbad8a014230fb5d40bb998
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Thu Aug 27 12:05:49 2020 +0200

    lyxpaperview: take the first match
---
 lib/scripts/lyxpaperview.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/scripts/lyxpaperview.py b/lib/scripts/lyxpaperview.py
index f62c5ea..09256da 100755
--- a/lib/scripts/lyxpaperview.py
+++ b/lib/scripts/lyxpaperview.py
@@ -84,7 +84,7 @@ def find(args, path):
                    # have this already
                    continue
                px = subprocess.Popen(['grep', '-i', arg], stdin=px.stdout, stdout=subprocess.PIPE)
-            p4 = subprocess.Popen(['head', '-n 2'], stdin=px.stdout, stdout=subprocess.PIPE)
+            p4 = subprocess.Popen(['head', '-n 1'], stdin=px.stdout, stdout=subprocess.PIPE)
             p1.stdout.close()
             output = p4.communicate()
             return output[0].decode("utf8")[:-1]# strip trailing '\n'


More information about the lyx-cvs mailing list