Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions patches/latexrun-pull-52
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
--- latexrun
+++ latexrun
@@ -763,7 +763,8 @@ class LaTeX(Task):
p = subprocess.Popen(args,
stdin=subprocess.DEVNULL,
stdout=subprocess.PIPE,
- stderr=subprocess.STDOUT)
+ stderr=subprocess.STDOUT,
+ env={**os.environ, 'max_print_line': '2147483647'})
stdout, has_errors, missing_includes = self.__feed_terminal(p.stdout)
status = p.wait()
except OSError as e:
@@ -1171,19 +1172,6 @@ class LaTeXFilter:
self.__ensure_line()
data = self.__data[self.__pos:self.__lend]
self.__pos = self.__lend
- if unwrap:
- # TeX helpfully wraps all terminal output at 79 columns
- # (max_print_line). If requested, unwrap it. There's
- # simply no way to do this perfectly, since there could be
- # a line that happens to be 79 columns.
- #
- # We check for >=80 because a bug in LuaTeX causes it to
- # wrap at 80 columns instead of 79 (LuaTeX #900).
- while self.__lend - self.__lstart >= 80:
- if self.TRACE: print('<{}> wrapping'.format(self.__pos))
- self.__ensure_line()
- data = data[:-1] + self.__data[self.__pos:self.__lend]
- self.__pos = self.__lend
return data

# Parser productions
1 change: 1 addition & 0 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5681,6 +5681,7 @@ filegroup(
"@bazel_latex//:patches/latexrun-force-colors",
"@bazel_latex//:patches/latexrun-pull-21",
"@bazel_latex//:patches/latexrun-pull-47",
"@bazel_latex//:patches/latexrun-pull-52",
"@bazel_latex//:patches/latexrun-pull-61",
"@bazel_latex//:patches/latexrun-pull-62",
],
Expand Down