From: Robert Pluim Date: Thu, 25 Nov 2021 14:29:00 +0000 (+0100) Subject: Fix pdf generation with Texinfo 6.7 X-Git-Tag: emacs-28.0.90~36 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4d16a2f7373a8d328f589b61ade3a2da7275501e;p=emacs.git Fix pdf generation with Texinfo 6.7 * doc/lispref/display.texi (Size of Displayed Text): Put @group inside @example (bug#52102). --- 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