From 96e12c8a274ea3e08648116f3fb052e3de005560 Mon Sep 17 00:00:00 2001 From: Matthew Sotoudeh Date: Mon, 13 Apr 2020 08:40:01 -0700 Subject: Initial code release --- patches/latexrun-pull-61 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/latexrun-pull-61 (limited to 'patches/latexrun-pull-61') diff --git a/patches/latexrun-pull-61 b/patches/latexrun-pull-61 new file mode 100644 index 0000000..a784377 --- /dev/null +++ b/patches/latexrun-pull-61 @@ -0,0 +1,18 @@ +--- latexrun ++++ latexrun +@@ -457,10 +457,12 @@ class Message(collections.namedtuple( + 'Message', 'typ filename lineno msg')): + def emit(self): + if self.filename: +- if self.filename.startswith('./'): +- finfo = self.filename[2:] +- else: ++ cwd = os.getcwd() ++ if (os.path.isabs(self.filename) and ++ os.path.commonpath([self.filename, cwd]) != cwd): + finfo = self.filename ++ else: ++ finfo = os.path.relpath(self.filename, cwd) + else: + finfo = '' + if self.lineno is not None: -- cgit v1.2.3