From 4d16a2f7373a8d328f589b61ade3a2da7275501e Mon Sep 17 00:00:00 2001 From: Robert Pluim Date: Thu, 25 Nov 2021 15:29:00 +0100 Subject: [PATCH] Fix pdf generation with Texinfo 6.7 * doc/lispref/display.texi (Size of Displayed Text): Put @group inside @example (bug#52102). --- doc/lispref/display.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 386d51a91a5..b1fb9f8b956 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -2026,14 +2026,14 @@ means hide the excess parts of @var{string} with a @code{display} text property (@pxref{Display Property}) showing the ellipsis, instead of actually truncating the string. -@group @example +@group (truncate-string-to-width "\tab\t" 12 4) @result{} "ab" (truncate-string-to-width "\tab\t" 12 4 ?\s) @result{} " ab " -@end example @end group +@end example This function uses @code{string-width} and @code{char-width} to find the suitable truncation point when @var{string} is too wide, so it -- 2.39.2