aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/doc/gnat_ugn
diff options
context:
space:
mode:
authorMarc Poulhiès <poulhies@adacore.com>2023-10-23 10:08:35 +0200
committerMarc Poulhiès <poulhies@adacore.com>2023-11-21 10:57:40 +0100
commitc6cd629ffbf895542dcf6e603ab112818cd9afd7 (patch)
tree9592275001af9acbf00478ea49d51ea1bff5b59a /gcc/ada/doc/gnat_ugn
parentfee5b643574e16cb2860ab6d6e26ccb0ed60f91a (diff)
downloadgcc-c6cd629ffbf895542dcf6e603ab112818cd9afd7.zip
gcc-c6cd629ffbf895542dcf6e603ab112818cd9afd7.tar.gz
gcc-c6cd629ffbf895542dcf6e603ab112818cd9afd7.tar.bz2
ada: Fix misplaced index directive in documentation
The index directive must be located before the indexed element, at least for the generated texinfo to be correct. See: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-index This was reported along with changes done in https://inbox.sourceware.org/gcc-patches/20230223102714.3606058-3-arsen@aarsen.me/ gcc/ada/ * doc/gnat_ugn/the_gnat_compilation_model.rst: Move index directives. * gnat_ugn.texi: Regenerate.
Diffstat (limited to 'gcc/ada/doc/gnat_ugn')
-rw-r--r--gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst b/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst
index ed24fed..fd15459 100644
--- a/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst
+++ b/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst
@@ -226,9 +226,9 @@ possible encoding schemes:
``16#A345#``.
This scheme is compatible with use of the full Wide_Character set.
-*Upper-Half Coding*
- .. index:: Upper-Half Coding
+.. index:: Upper-Half Coding
+*Upper-Half Coding*
The wide character with encoding ``16#abcd#`` where the upper bit is on
(in other words, 'a' is in the range 8-F) is represented as two bytes,
``16#ab#`` and ``16#cd#``. The second byte cannot be a format control
@@ -236,9 +236,9 @@ possible encoding schemes:
be also used for shift-JIS or EUC, where the internal coding matches the
external coding.
-*Shift JIS Coding*
- .. index:: Shift JIS Coding
+.. index:: Shift JIS Coding
+*Shift JIS Coding*
A wide character is represented by a two-character sequence,
``16#ab#`` and
``16#cd#``, with the restrictions described for upper-half encoding as
@@ -247,10 +247,9 @@ possible encoding schemes:
conversion. Only characters defined in the JIS code set table can be
used with this encoding method.
+.. index:: EUC Coding
*EUC Coding*
- .. index:: EUC Coding
-
A wide character is represented by a two-character sequence
``16#ab#`` and
``16#cd#``, with both characters being in the upper half. The internal