File 0491-Handle-behavior-names.patch of Package erlang

From 96d7199fbd870162382c46cef9f0ef04cb8b1c9d Mon Sep 17 00:00:00 2001
From: "Paulo F. Oliveira" <paulo.ferraz.oliveira@gmail.com>
Date: Sun, 10 Sep 2023 13:51:30 +0100
Subject: [PATCH 11/15] Handle behavior names

(just define a behavior module to see how it works in terms of output)
---
 lib/edoc/src/edoc_layout.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/edoc/src/edoc_layout.erl b/lib/edoc/src/edoc_layout.erl
index 6d2a665d40..c03f369eda 100644
--- a/lib/edoc/src/edoc_layout.erl
+++ b/lib/edoc/src/edoc_layout.erl
@@ -745,7 +745,7 @@ behaviours(Es, Name, Opts) ->
                            [br, " Optional callback functions: "]
                            ++ seq(CBFun, OCBs, ["."])
                    end,
-	     [{p, ([{b, ["This module defines the ", {tt, [Name]},
+	     [{p, ([{b, ["This module defines the ", {code, [Name]},
 			 " behaviour."]}]
                    ++ Req ++ Opt)},
 	      ?NL]
-- 
2.35.3

openSUSE Build Service is sponsored by