From d50964864b7caf0dbde0915c0c8ada3aea48ef7a Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Wed, 22 Dec 2021 16:47:29 +0000 Subject: [PATCH] gdb/doc: shorten some source lines, and prevent some line breaks Building on the previous commit, this makes use of a trailing @ to split long @deffn lines in the guile.texi source file. This splitting doesn't change how the document is laid out by texinfo. I have also wrapped keyword and argument name pairs in @w{...} to prevent line breaks appearing between the two. I've currently only done this for the longer @deffn lines, where a line break is possible. This makes the @deffn lines much nicer to read in the generated pdf. --- gdb/doc/guile.texi | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/gdb/doc/guile.texi b/gdb/doc/guile.texi index c7e367a9ca8..3c517230929 100644 --- a/gdb/doc/guile.texi +++ b/gdb/doc/guile.texi @@ -239,8 +239,8 @@ int The @code{(gdb)} module provides these basic Guile functions. -@c TODO: line length -@deffn {Scheme Procedure} execute command @r{[}#:from-tty boolean@r{]} @r{[}#:to-string boolean@r{]} +@deffn {Scheme Procedure} execute command @w{@r{[}#:from-tty boolean@r{]}} @ + @w{@r{[}#:to-string boolean@r{]}} Evaluate @var{command}, a string, as a @value{GDBN} CLI command. If a @value{GDBN} exception happens while @var{command} runs, it is translated as described in @@ -853,8 +853,9 @@ Return a Scheme bytevector with the raw contents of @code{} @var{value}. No transformation, endian or otherwise, is performed. @end deffn -@c TODO: line length -@deffn {Scheme Procedure} value->string value @r{[}#:encoding encoding@r{]} @r{[}#:errors errors@r{]} @r{[}#:length length@r{]} +@deffn {Scheme Procedure} value->string value @ + @w{@r{[}#:encoding encoding@r{]}} @w{@r{[}#:errors errors@r{]}} @ + @w{@r{[}#:length length@r{]}} If @var{value>} represents a string, then this method converts the contents to a Guile string. Otherwise, this method will throw an exception. @@ -895,8 +896,8 @@ fetched and converted to the given length. The length must be a Scheme integer and not a @code{} integer. @end deffn -@c TODO: line length -@deffn {Scheme Procedure} value->lazy-string value @r{[}#:encoding encoding@r{]} @r{[}#:length length@r{]} +@deffn {Scheme Procedure} value->lazy-string value @ + @w{@r{[}#:encoding encoding@r{]}} @w{@r{[}#:length length@r{]}} If this @code{} represents a string, then this method converts @var{value} to a @code{