[Git][ghc/ghc][master] docs: Fix code-block syntax on old sphinx version

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Fri Aug 23 14:38:10 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
1f95c5e4 by Matthew Pickering at 2024-08-23T10:37:46-04:00
docs: Fix code-block syntax on old sphinx version

This code-block directive breaks the deb9 sphinx build.

Fixes #25201

- - - - -


1 changed file:

- docs/users_guide/exts/multiline_strings.rst


Changes:

=====================================
docs/users_guide/exts/multiline_strings.rst
=====================================
@@ -36,7 +36,7 @@ Examples
 +-----------------------+------------------------+---------------------------+
 | Expression            | Output                 | Notes                     |
 +=======================+========================+===========================+
-| .. code-block:: text  | .. code-block::        |                           |
+| .. code-block:: text  | ::                     |                           |
 |                       |                        |                           |
 |    """                |       "Line 1\n"       |                           |
 |    Line 1             |    ++ "Line 2\n"       |                           |
@@ -44,7 +44,7 @@ Examples
 |    Line 3             |                        |                           |
 |    """                |                        |                           |
 +-----------------------+------------------------+---------------------------+
-| .. code-block:: text  | .. code-block::        |                           |
+| .. code-block:: text  | ::                     |                           |
 |                       |                        | Characters on the same    |
 |    """Test            |       "Test\n"         | line as the delimiter are |
 |    Line 1             |    ++ "Line 1\n"       | still included            |
@@ -52,7 +52,7 @@ Examples
 |    Line 3             |    ++ "Line 3\n"       |                           |
 |    """                |                        |                           |
 +-----------------------+------------------------+---------------------------+
-| .. code-block:: text  | .. code-block::        |                           |
+| .. code-block:: text  | ::                     |                           |
 |                       |                        | Omit the trailing newline |
 |    """                |       "Line 1\n"       | with string gaps          |
 |    Line 1             |    ++ "Line 2\n"       |                           |
@@ -60,7 +60,7 @@ Examples
 |    Line 3\            |                        |                           |
 |    \"""               |                        |                           |
 +-----------------------+------------------------+---------------------------+
-| .. code-block:: text  | .. code-block::        |                           |
+| .. code-block:: text  | ::                     |                           |
 |                       |                        | Double quotes don't need  |
 |    """                |       "\"Hello\"\n"    | to be escaped unless      |
 |    "Hello"            |    ++ "\"\"\"\n"       | they're triple quoted     |
@@ -68,7 +68,7 @@ Examples
 |    \"""               |                        |                           |
 |    """                |                        |                           |
 +-----------------------+------------------------+---------------------------+
-| .. code-block:: text  | .. code-block::        |                           |
+| .. code-block:: text  | ::                     |                           |
 |                       |                        | Only common indentation   |
 |    """                |       "<div>\n"        | is stripped               |
 |      <div>            |    ++ "  <p>ABC</p>\n" |                           |
@@ -76,7 +76,7 @@ Examples
 |      </div>           |                        |                           |
 |    """                |                        |                           |
 +-----------------------+------------------------+---------------------------+
-| .. code-block:: text  | .. code-block::        |                           |
+| .. code-block:: text  | ::                     |                           |
 |                       |                        | Use ``\&`` to keep        |
 |    """                |       "  Line 1\n"     | leading indentation for   |
 |      \&  Line 1       |    ++ "  Line 2\n"     | each line                 |



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f95c5e4238ef0a55649fd878bd11c7c221c531a

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f95c5e4238ef0a55649fd878bd11c7c221c531a
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240823/7adc8381/attachment-0001.html>


More information about the ghc-commits mailing list