mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Rewrite vcard example configuration to not require extended format
This commit is contained in:
parent
345af5a535
commit
d8cdd82bf8
@ -367,21 +367,22 @@ mod_doc() ->
|
||||
"of vCard. Since the representation has no attributes, "
|
||||
"the mapping is straightforward."),
|
||||
example =>
|
||||
[{?T("For example, the following XML representation of vCard:"),
|
||||
["<vCard xmlns='vcard-temp'>",
|
||||
" <FN>Conferences</FN>",
|
||||
" <ADR>",
|
||||
" <WORK/>",
|
||||
" <STREET>Elm Street</STREET>",
|
||||
" </ADR>",
|
||||
"</vCard>"]},
|
||||
{?T("will be translated to:"),
|
||||
["vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}]}}],
|
||||
["# This XML representation of vCard:",
|
||||
"# <vCard xmlns='vcard-temp'>",
|
||||
"# <FN>Conferences</FN>",
|
||||
"# <ADR>",
|
||||
"# <WORK/>",
|
||||
"# <STREET>Elm Street</STREET>",
|
||||
"# </ADR>",
|
||||
"# </vCard>",
|
||||
"# ",
|
||||
"# is translated to:",
|
||||
"vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}}],
|
||||
example =>
|
||||
["listen:",
|
||||
" -",
|
||||
|
@ -1654,21 +1654,22 @@ mod_doc() ->
|
||||
"of vCard. Since the representation has no attributes, "
|
||||
"the mapping is straightforward."),
|
||||
example =>
|
||||
[{?T("For example, the following XML representation of vCard:"),
|
||||
["<vCard xmlns='vcard-temp'>",
|
||||
" <FN>Conferences</FN>",
|
||||
" <ADR>",
|
||||
" <WORK/>",
|
||||
" <STREET>Elm Street</STREET>",
|
||||
" </ADR>",
|
||||
"</vCard>"]},
|
||||
{?T("will be translated to:"),
|
||||
["vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}]}},
|
||||
["# This XML representation of vCard:",
|
||||
"# <vCard xmlns='vcard-temp'>",
|
||||
"# <FN>Conferences</FN>",
|
||||
"# <ADR>",
|
||||
"# <WORK/>",
|
||||
"# <STREET>Elm Street</STREET>",
|
||||
"# </ADR>",
|
||||
"# </vCard>",
|
||||
"# ",
|
||||
"# is translated to:",
|
||||
"vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}},
|
||||
{cleanup_affiliations_on_start,
|
||||
#{value => "true | false",
|
||||
note => "added in 22.05",
|
||||
|
@ -239,21 +239,22 @@ mod_doc() ->
|
||||
"of vCard. Since the representation has no attributes, "
|
||||
"the mapping is straightforward."),
|
||||
example =>
|
||||
[{?T("For example, the following XML representation of vCard:"),
|
||||
["<vCard xmlns='vcard-temp'>",
|
||||
" <FN>Conferences</FN>",
|
||||
" <ADR>",
|
||||
" <WORK/>",
|
||||
" <STREET>Elm Street</STREET>",
|
||||
" </ADR>",
|
||||
"</vCard>"]},
|
||||
{?T("will be translated to:"),
|
||||
["vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}]}}],
|
||||
["# This XML representation of vCard:",
|
||||
"# <vCard xmlns='vcard-temp'>",
|
||||
"# <FN>Conferences</FN>",
|
||||
"# <ADR>",
|
||||
"# <WORK/>",
|
||||
"# <STREET>Elm Street</STREET>",
|
||||
"# </ADR>",
|
||||
"# </vCard>",
|
||||
"# ",
|
||||
"# is translated to:",
|
||||
"vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}}],
|
||||
example =>
|
||||
["acl:",
|
||||
" admin:",
|
||||
|
@ -4504,21 +4504,22 @@ mod_doc() ->
|
||||
"representation of vCard. Since the representation has "
|
||||
"no attributes, the mapping is straightforward."),
|
||||
example =>
|
||||
[{?T("The following XML representation of vCard:"),
|
||||
["<vCard xmlns='vcard-temp'>",
|
||||
" <FN>PubSub Service</FN>",
|
||||
" <ADR>",
|
||||
" <WORK/>",
|
||||
" <STREET>Elm Street</STREET>",
|
||||
" </ADR>",
|
||||
"</vCard>"]},
|
||||
{?T("will be translated to:"),
|
||||
["vcard:",
|
||||
" fn: PubSub Service",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}]}}
|
||||
["# This XML representation of vCard:",
|
||||
"# <vCard xmlns='vcard-temp'>",
|
||||
"# <FN>Conferences</FN>",
|
||||
"# <ADR>",
|
||||
"# <WORK/>",
|
||||
"# <STREET>Elm Street</STREET>",
|
||||
"# </ADR>",
|
||||
"# </vCard>",
|
||||
"# ",
|
||||
"# is translated to:",
|
||||
"vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}}
|
||||
],
|
||||
example =>
|
||||
[{?T("Example of configuration that uses flat nodes as default, "
|
||||
|
@ -667,18 +667,21 @@ mod_doc() ->
|
||||
"of vCard. Since the representation has no attributes, "
|
||||
"the mapping is straightforward."),
|
||||
example =>
|
||||
[{?T("For example, the following XML representation of vCard:"),
|
||||
["<vCard xmlns='vcard-temp'>",
|
||||
" <FN>Conferences</FN>",
|
||||
" <ADR>",
|
||||
" <WORK/>",
|
||||
" <STREET>Elm Street</STREET>",
|
||||
" </ADR>",
|
||||
"</vCard>"]},
|
||||
{?T("will be translated to:"),
|
||||
["vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}]}}]}.
|
||||
["# This XML representation of vCard:",
|
||||
"# ",
|
||||
"# <vCard xmlns='vcard-temp'>",
|
||||
"# <FN>Conferences</FN>",
|
||||
"# <ADR>",
|
||||
"# <WORK/>",
|
||||
"# <STREET>Elm Street</STREET>",
|
||||
"# </ADR>",
|
||||
"# </vCard>",
|
||||
"# ",
|
||||
"# is translated to:",
|
||||
"# ",
|
||||
"vcard:",
|
||||
" fn: Conferences",
|
||||
" adr:",
|
||||
" -",
|
||||
" work: true",
|
||||
" street: Elm Street"]}}]}.
|
||||
|
Loading…
Reference in New Issue
Block a user