File otp_src_26.2.3-lib-compler-test-doc.patch of Package erlang

diff -Ndurp otp_src_26.2.3/lib/compiler/test/beam_doc_SUITE_data/all_string_formats.erl otp_src_26.2.3-lib-compler-test-doc/lib/compiler/test/beam_doc_SUITE_data/all_string_formats.erl
--- otp_src_26.2.3/lib/compiler/test/beam_doc_SUITE_data/all_string_formats.erl	2024-03-08 22:27:56.565155228 +0200
+++ otp_src_26.2.3-lib-compler-test-doc/lib/compiler/test/beam_doc_SUITE_data/all_string_formats.erl	2024-03-08 22:26:23.287125893 +0200
@@ -2,13 +2,9 @@
 
 -export([one/0,two/0,three/0,four/0,five/0,six/0]).
 
--moduledoc """
-  Moduledoc test module
-  """.
-
--doc ~S"Doc test module".
+-doc "Doc test module".
 one() -> ok.
--doc ~B"Doc test module".
+-doc <<"Doc test module">>.
 two() -> ok.
 -doc <<"Doc","test","modul",$e>>.
 three() -> ok.
diff -Ndurp otp_src_26.2.3/lib/compiler/test/beam_doc_SUITE.erl otp_src_26.2.3-lib-compler-test-doc/lib/compiler/test/beam_doc_SUITE.erl
--- otp_src_26.2.3/lib/compiler/test/beam_doc_SUITE.erl	2024-03-08 22:27:56.565155228 +0200
+++ otp_src_26.2.3-lib-compler-test-doc/lib/compiler/test/beam_doc_SUITE.erl	2024-03-08 22:25:09.464685532 +0200
@@ -522,13 +522,12 @@ skip_doc(Conf) ->
 
 
 docs_from_ast(_Conf) ->
-    Code = """
-      -module(test).
-      -moduledoc "moduledoc".
-      -export([main/0]).
-      -doc "main".
-      main() -> ok.
-      """,
+    Code = "-module(test).
+-moduledoc "moduledoc".
+-export([main/0]).
+-doc "main".
+main() -> ok.
+",
 
     {ok, test, BeamCode} = compile:forms(scan_and_parse(Code),[debug_info]),
     {ok, {test, [{documentation, Docs }]}} = beam_lib:chunks(BeamCode, [documentation]),
openSUSE Build Service is sponsored by