Spec SAS verification and the common key verification framework
Reference implementations:
* 94f664e725
* https://github.com/matrix-org/matrix-react-sdk/pull/2461
* https://github.com/matrix-org/matrix-js-sdk/pull/818
* https://github.com/matrix-org/matrix-react-sdk/pull/2596
* https://github.com/matrix-org/matrix-js-sdk/pull/837
Proposals:
* [MSC1717](https://github.com/matrix-org/matrix-doc/pull/1717)
* [MSC1267](https://github.com/matrix-org/matrix-doc/issues/1267)
No alterations to either proposal have been made intentionally here.
This commit is contained in:
parent
9cb60fa468
commit
a3364ff357
20 changed files with 847 additions and 3 deletions
|
@ -18,6 +18,7 @@ import inspect
|
|||
import json
|
||||
import os
|
||||
import logging
|
||||
import re
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -225,3 +226,19 @@ class MatrixSections(Sections):
|
|||
examples=swagger_def['examples'],
|
||||
title_kind=subtitle_title_char)
|
||||
return rendered
|
||||
|
||||
def render_sas_emoji_table(self):
|
||||
emoji = self.units.get("sas_emoji")
|
||||
rendered = ".. csv-table::\n"
|
||||
rendered += " :header: \"Number\", \"Emoji\", \"Unicode\", \"Description\"\n"
|
||||
rendered += " :widths: 10, 10, 15, 20\n"
|
||||
rendered += "\n"
|
||||
for row in emoji:
|
||||
rendered += " %d, \"%s\", \"``%s``\", \"%s\"\n" % (
|
||||
row['number'],
|
||||
row['emoji'],
|
||||
row['unicode'],
|
||||
row['description'],
|
||||
)
|
||||
rendered += "\n"
|
||||
return rendered
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue