aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_files.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2021-05-03 14:22:31 +0200
committerTibor Frank <tifrank@cisco.com>2021-06-08 07:17:22 +0000
commit9af40f4eca416835aa1a4032808378b41ea4e2a6 (patch)
tree68f5318b0373bb36d8de90ff1c776e1375fd189b /resources/tools/presentation/generator_files.py
parent927ddf2765db25d9c0c82c273afbdb282ab301b1 (diff)
PAL: Convert XML to JSON
Change-Id: I24f0ddc412d4353ba244c58a3068b5b0ea4349e3 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit c763cfcb064e4f4acf6b8309b08d3800b9bd5331)
Diffstat (limited to 'resources/tools/presentation/generator_files.py')
-rw-r--r--resources/tools/presentation/generator_files.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_files.py b/resources/tools/presentation/generator_files.py
index 11ed9b0337..aa4392e473 100644
--- a/resources/tools/presentation/generator_files.py
+++ b/resources/tools/presentation/generator_files.py
@@ -205,7 +205,12 @@ def file_details_split(file_spec, input_data, frmt=u"rst"):
chapters[chapter_l1][chapter_l2][nic][u"tables"].append(
(
table_lst.pop(idx),
- suite[u"doc"].replace(u'|br|', u'\n\n -')
+ suite[u"doc"].replace(u'"', u"'").
+ replace(u'\n', u' ').
+ replace(u'\r', u'').
+ replace(u'*[', u'\n\n - *[').
+ replace(u"*", u"**").
+ replace(u'\n\n - *[', u' - *[', 1)
)
)
break