File 4451-Use-c-.-c-in-xml-docs-instead-of.patch of Package erlang

From 7909279e24330bfa5687bbd47d340b85a81b20b9 Mon Sep 17 00:00:00 2001
From: "Paulo F. Oliveira" <paulo.ferraz.oliveira@gmail.com>
Date: Tue, 8 Aug 2023 12:41:27 +0100
Subject: [PATCH] Use <c>...</c> (in xml docs) instead of `...`

The former renders proper HTML, the latter renders actual backticks.
---
 lib/stdlib/doc/src/proc_lib.xml             | 2 +-
 system/doc/reference_manual/expressions.xml | 2 +-
 system/doc/reference_manual/typespec.xml    | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/system/doc/reference_manual/typespec.xml b/system/doc/reference_manual/typespec.xml
index 8f3ba3b25a..9116f92828 100644
--- a/system/doc/reference_manual/typespec.xml
+++ b/system/doc/reference_manual/typespec.xml
@@ -91,14 +91,14 @@
     <marker id="dynamic"/>
     <p>
       To facilitate <url href="https://en.wikipedia.org/wiki/Gradual_typing">
-      gradual typing</url> of Erlang, the type `dynamic()` is provided.
+      gradual typing</url> of Erlang, the type <c>dynamic()</c> is provided.
       It is similar to
       <url href="https://docs.python.org/3/library/typing.html#the-any-type">Any</url>
       in Python,
       <url href="https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#any">any</url>
       in TypeScript and
       <url href="https://docs.hhvm.com/hack/built-in-types/dynamic">dynamic</url>
-      in Hack. `any()` and `dynamic()` interact with
+      in Hack. <c>any()</c> and <c>dynamic()</c> interact with
       <url href="https://learnyousomeerlang.com/dialyzer#success-typing">success typing</url>
       the same way, so Dialyzer doesn't distinguish between them.
     </p>
-- 
2.35.3

openSUSE Build Service is sponsored by