diff options
author | Björn Gustavsson <[email protected]> | 2019-04-05 10:26:39 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2019-04-05 10:26:39 +0200 |
commit | c0989dcede812c47290f1c61d39e46caa0edf547 (patch) | |
tree | cfdb9482774f27363dfc542e84c646c0053e8f72 /lib/erl_docgen/src | |
parent | 041de278a8b8639d5fc975218c39226be3bf1e16 (diff) | |
parent | 07b9eacff8c65df4ac00a21010c748217c908eb9 (diff) | |
download | otp-c0989dcede812c47290f1c61d39e46caa0edf547.tar.gz otp-c0989dcede812c47290f1c61d39e46caa0edf547.tar.bz2 otp-c0989dcede812c47290f1c61d39e46caa0edf547.zip |
Merge branch 'lukas/erl_docgen/add-internal-docs'
OTP-15715
* lukas/erl_docgen/add-internal-docs:
cerl_clauses: Fix broken link
Fix minor typos
Add CountingInstructions to the internal documentation
GarbageCollection.md: Fix links to references
emd2exml: Remove paragraphs around image tags
emd2exml: Clean emphasis markers in link texts
emd2exml: Allow short names of anchors for internal links
Include figures
erts: Fix more internal docs xmllint
compiler: Add internal docs section
erl_docgen: Add new internal docs chapter to docs
Diffstat (limited to 'lib/erl_docgen/src')
-rw-r--r-- | lib/erl_docgen/src/docgen_edoc_xml_cb.erl | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/erl_docgen/src/docgen_edoc_xml_cb.erl b/lib/erl_docgen/src/docgen_edoc_xml_cb.erl index d562cfddcc..2c9aa2e3a3 100644 --- a/lib/erl_docgen/src/docgen_edoc_xml_cb.erl +++ b/lib/erl_docgen/src/docgen_edoc_xml_cb.erl @@ -1260,11 +1260,15 @@ get_text(#xmlElement{content=[E]}) -> %% text_and_name_only(Es) -> {N, Ts} text_and_a_name_only(Es) -> - [Name|_] = [Name || - #xmlElement{ - name = a, - attributes = [#xmlAttribute{name=name}]}=Name <- Es], - {Name#xmlElement{content = []}, text_only(Es)}. + erlang:display(Es), + case [Name || #xmlElement{ + name = a, + attributes = [#xmlAttribute{name=name}]}=Name <- Es] of + [Name|_] -> + {Name#xmlElement{content = []}, text_only(Es)}; + [] -> + {"", text_only(Es)} + end. %% text_only(Es) -> Ts %% Takes a list of xmlElement and xmlText and return a lists of xmlText. |