Skip to content

Commit 0cead69

Browse files
committed
Minor error message improvement
1 parent aa3230c commit 0cead69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fpdf/fpdf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2861,7 +2861,8 @@ def multi_cell(
28612861
w = self.w - self.r_margin - self.x
28622862
if w <= 2 * self.c_margin:
28632863
raise FPDFException(
2864-
"Not enough horizontal space to render cell. Consider introducing a line break."
2864+
"Not enough horizontal space to render cell."
2865+
" Consider introducing a line break or using x_pos=XPos.LEFT in your previous call."
28652866
)
28662867
maximum_allowed_emwidth = (w - 2 * self.c_margin) * 1000 / self.font_size
28672868

0 commit comments

Comments
 (0)