summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/lualatex/linebreaker/README.md2
-rw-r--r--Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.pdfbin51388 -> 51966 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.tex9
-rw-r--r--Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua2
4 files changed, 10 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/lualatex/linebreaker/README.md b/Master/texmf-dist/doc/lualatex/linebreaker/README.md
index 5065054fcfd..26b4cd59e55 100644
--- a/Master/texmf-dist/doc/lualatex/linebreaker/README.md
+++ b/Master/texmf-dist/doc/lualatex/linebreaker/README.md
@@ -1,4 +1,4 @@
-#The Linebreaker package, version v0.1 (2022-02-19)
+#The Linebreaker package, version v0.1a (2022-03-12)
This package tries to prevent overflow lines in paragraphs or boxes.
It changes the LuaTeX's `linebreak` callback, and it re-typesets the paragraph
diff --git a/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.pdf b/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.pdf
index 7f2b426ae37..ac6659002fb 100644
--- a/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.pdf
+++ b/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.tex b/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.tex
index 729c9e9eaa8..8da047ceea4 100644
--- a/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.tex
+++ b/Master/texmf-dist/doc/lualatex/linebreaker/linebreaker-doc.tex
@@ -186,7 +186,14 @@ under the terms of the LaTeX Project Public License, version 1.3.
\section{Changes}
\begin{description}
- \item[v0.1, 2022-02-19]
+ \item[v0.1a, 2022-03-12]\hfill
+
+ \begin{itemize}
+ \item Fixed fatal error in the function that calculates width of last lines in paragraphs.
+ \end{itemize}
+
+ \item[v0.1, 2022-02-19]\hfill
+
\begin{itemize}
\item Initial version
\end{itemize}
diff --git a/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua b/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua
index e6c05d4fdf7..6a2d20e074b 100644
--- a/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua
+++ b/Master/texmf-dist/tex/lualatex/linebreaker/linebreaker.lua
@@ -331,7 +331,7 @@ function linebreaker.last_line_width(head)
end
end
-- something went wrong, so discard this solution
- if not n.head then return 0 end
+ if not n.head or not n.glue_set then return 0 end
w, _, _ = node.dimensions(n.glue_set, n.glue_sign, n.glue_order, n.head)
w1, _, _ = node.dimensions(n.glue_set, n.glue_sign, n.glue_order, n)
return w