Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:26
erlang
1806-edoc-Fix-parsing-of-multi-paragraph-XML.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1806-edoc-Fix-parsing-of-multi-paragraph-XML.patch of Package erlang
From 6307b61b30ada7477b2d3644237a9d4130f601b6 Mon Sep 17 00:00:00 2001 From: Lukas Larsson <lukas@erlang.org> Date: Fri, 2 Feb 2024 09:21:32 +0100 Subject: [PATCH 6/8] edoc: Fix parsing of multi-paragraph XML --- lib/edoc/src/edoc_html_to_markdown.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/edoc/src/edoc_html_to_markdown.erl b/lib/edoc/src/edoc_html_to_markdown.erl index adbd4199ea..c52b6a8fcb 100644 --- a/lib/edoc/src/edoc_html_to_markdown.erl +++ b/lib/edoc/src/edoc_html_to_markdown.erl @@ -54,8 +54,9 @@ convert_xml(Application, Binary) when is_atom(Application) -> -endif. convert_xml(Application, Module, Binary) when is_atom(Application), is_atom(Module) -> put(application, atom_to_binary(Application)), - case xmerl_sax_parser:stream(Binary, [{event_fun, fun event/3}, - {event_state, initial_state()}]) of + case xmerl_sax_parser:stream(iolist_to_binary(["<section>",Binary,"</section>"]), + [{event_fun, fun event/3}, + {event_state, initial_state()}]) of {ok, Tree, _} -> convert_html(Application, Module, transform(get_dom(Tree), [])) end. -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor