public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Ada] Fix formatting glitches in GNAT User's Guide
@ 2022-05-11  8:54 Pierre-Marie de Rodat
  0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2022-05-11  8:54 UTC (permalink / raw)
  To: gcc-patches; +Cc: Piotr Trojanek

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

Only enhancement of formatting.

Tested on x86_64-pc-linux-gnu, committed on trunk

gcc/ada/

	* doc/gnat_ugn/gnat_and_program_execution.rst,
	doc/gnat_ugn/gnat_utility_programs.rst,
	doc/gnat_ugn/inline_assembler.rst: Fix typos and formatting
	glitches.
	* gnat_ugn.texi: Regenerate.

[-- Attachment #2: patch.diff --]
[-- Type: text/x-diff, Size: 3082 bytes --]

diff --git a/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst b/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst
--- a/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst
+++ b/gcc/ada/doc/gnat_ugn/gnat_and_program_execution.rst
@@ -433,7 +433,7 @@ Ada Tasks
 
 .. index:: Breakpoints and tasks
 
-* ``break``*linespec* ``task`` *taskid*, ``break`` *linespec* ``task`` *taskid* ``if`` ...
+* ``break`` *linespec* ``task`` *taskid*, ``break`` *linespec* ``task`` *taskid* ``if`` ...
 
     These commands are like the ``break ... thread ...``.
     *linespec* specifies source lines.
@@ -1306,7 +1306,7 @@ or simply:
 
   ::
 
-    $  gprof my_prog
+    $ gprof my_prog
 
 The complete form of the gprof command line is the following:
 


diff --git a/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst b/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst
--- a/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst
+++ b/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst
@@ -630,13 +630,13 @@ building specialized scripts.
 
    .. index:: --wide-character-encoding (gnatmetric)
 
-   :switch:`--wide-character-encoding={e}`
-     Specify the wide character encoding method for the input and output
-     files. ``e`` is one of the following:
+  :switch:`--wide-character-encoding={e}`
+    Specify the wide character encoding method for the input and output
+    files. ``e`` is one of the following:
 
-     * *8* - UTF-8 encoding
+    * *8* - UTF-8 encoding
 
-     * *b* - Brackets encoding (default value)
+    * *b* - Brackets encoding (default value)
 
 
   .. index:: Disable Metrics For Local Units in gnatmetric
@@ -1161,7 +1161,7 @@ building specialized scripts.
     Report maximal loop nesting level
 
 
-  :switch:`-no-loop-nesting`
+  :switch:`--no-loop-nesting`
     Do not report maximal loop nesting level
 
 


diff --git a/gcc/ada/doc/gnat_ugn/inline_assembler.rst b/gcc/ada/doc/gnat_ugn/inline_assembler.rst
--- a/gcc/ada/doc/gnat_ugn/inline_assembler.rst
+++ b/gcc/ada/doc/gnat_ugn/inline_assembler.rst
@@ -138,7 +138,7 @@ To see this output, invoke the compiler as follows:
 
   ::
 
-     $  gcc -c -S -fomit-frame-pointer -gnatp nothing.adb
+     $ gcc -c -S -fomit-frame-pointer -gnatp nothing.adb
 
 where the options are:
 


diff --git a/gcc/ada/gnat_ugn.texi b/gcc/ada/gnat_ugn.texi
--- a/gcc/ada/gnat_ugn.texi
+++ b/gcc/ada/gnat_ugn.texi
@@ -18498,7 +18498,7 @@ to refer to tasks in the following commands.
 @itemize *
 
 @item 
-@code{break`@w{`}*linespec* `@w{`}task} @emph{taskid}, @code{break} @emph{linespec} @code{task} @emph{taskid} @code{if} …
+@code{break} @emph{linespec} @code{task} @emph{taskid}, @code{break} @emph{linespec} @code{task} @emph{taskid} @code{if} …
 
 @quotation
 
@@ -19517,7 +19517,7 @@ or simply:
 @quotation
 
 @example
-$  gprof my_prog
+$ gprof my_prog
 @end example
 @end quotation
 
@@ -28015,7 +28015,7 @@ To see this output, invoke the compiler as follows:
 @quotation
 
 @example
-$  gcc -c -S -fomit-frame-pointer -gnatp nothing.adb
+$ gcc -c -S -fomit-frame-pointer -gnatp nothing.adb
 @end example
 @end quotation
 



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-11  8:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-11  8:54 [Ada] Fix formatting glitches in GNAT User's Guide Pierre-Marie de Rodat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).