* doc/api/process-one.css: Add some style to HTML elements

* src/ejabberd_listener.erl: Fix EDoc errors
* src/web/ejabberd_web_admin.erl: Likewise

SVN Revision: 1843
This commit is contained in:
Badlop 2009-01-21 19:49:26 +00:00
parent b9caf7e610
commit d0273f4630
4 changed files with 25 additions and 7 deletions

View File

@ -1,5 +1,10 @@
2009-01-21 Badlop <badlop@process-one.net> 2009-01-21 Badlop <badlop@process-one.net>
* doc/api/process-one.css: Add some style to HTML elements
* src/ejabberd_listener.erl: Fix EDoc errors
* src/web/ejabberd_web_admin.erl: Likewise
* src/ejabberd_hooks.erl: Explanation in EDoc of some functions * src/ejabberd_hooks.erl: Explanation in EDoc of some functions
2009-01-20 Badlop <badlop@process-one.net> 2009-01-20 Badlop <badlop@process-one.net>

View File

@ -71,10 +71,22 @@ pre, tt, code {
} }
pre { pre {
margin-left: 1em; margin:1ex 2ex;
border:1px dashed lightgrey;
background-color:#f9f9f9;
padding:0.5ex;
} }
pre em { pre em {
font-style: normal; font-style: normal;
font-weight: bold; font-weight: bold;
} }
dt {
margin:0ex 2ex;
font-weight:bold;
}
dd {
margin:0ex 0ex 1ex 4ex;
}

View File

@ -287,12 +287,13 @@ add_listener(PortIP, Module, Opts) ->
{error, Error} {error, Error}
end. end.
%% @spec (PortIP) -> ok %% @spec (PortIP, Module) -> ok
%% where %% where
%% PortIP = {Port, IPT | IPS} %% PortIP = {Port, IPT | IPS}
%% Port = integer() %% Port = integer()
%% IPT = tuple() %% IPT = tuple()
%% IPS = string() %% IPS = string()
%% Module = atom()
delete_listener(PortIP, Module) -> delete_listener(PortIP, Module) ->
Ports = case ejabberd_config:get_local_option(listen) of Ports = case ejabberd_config:get_local_option(listen) of
undefined -> undefined ->

View File

@ -1063,12 +1063,12 @@ term_to_string(T) ->
{ok, StringLine, _} = regexp:gsub(StringParagraph, "\\n ", ""), {ok, StringLine, _} = regexp:gsub(StringParagraph, "\\n ", ""),
StringLine. StringLine.
%% @spec (T::any()) -> {NumLines::integer(), Paragraph::string()} %% @spec (T::any(), Cols::integer()) -> {NumLines::integer(), Paragraph::string()}
term_to_paragraph(T, Cols) -> term_to_paragraph(T, Cols) ->
Paragraph = erl_prettypr:format(erl_syntax:abstract(T), [{paper, Cols}]), Paragraph = erl_prettypr:format(erl_syntax:abstract(T), [{paper, Cols}]),
{ok, FieldList} = regexp:split(Paragraph, "\n"), {ok, FieldList} = regexp:split(Paragraph, "\n"),
NumLines = length(FieldList), NumLines = length(FieldList),
{NumLines, Paragraph}. {NumLines, Paragraph}.
term_to_id(T) -> term_to_id(T) ->
jlib:encode_base64(binary_to_list(term_to_binary(T))). jlib:encode_base64(binary_to_list(term_to_binary(T))).