From 54031a176f0d8d0bb96e60a367f1b0894d2bc259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sun, 28 Mar 2021 14:36:01 +0200 Subject: [PATCH] XEP-0456: fix lack of algorithm description --- xep-0456.xml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/xep-0456.xml b/xep-0456.xml index a99a1c81..08fc4e1d 100644 --- a/xep-0456.xml +++ b/xep-0456.xml @@ -23,6 +23,12 @@ jonas@zombofant.net jonas@zombofant.net + + 0.2.0 + 2021-03-28 + jsc + Describe the conversion algorithm. + 0.1.0 2021-03-28 @@ -131,8 +137,9 @@ unexpected elements.

If the format needs to be conveyed in plain text form, for example to carry -the list of labels in &xep0128; or a &xep0004; configuration form, the -following algorithm is to be applied:

+the list of labels in &xep0128; or a &xep0004; configuration form, the structure described above is converted to a simple text-based form.

+ +

Each <simple-label/> element is converted to a line of text. The line is composed of the value of the type attribute of the element, followed by a single space character (U+0020), followed by the character data of the element.

@@ -151,10 +158,7 @@ All labels are mapped to a single text-multi.

]]> -

Each line in the text-multi field is prefixed with the key of the -corresponding <simple-label/> element. The key is followed by a single -space character (U+0020), followed by the character data of the -<simple-label/> element.

+

Each line in the text-multi field corresponds to a converted <simple-label/> element as described above.