X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_files.py;h=ef06cad5192289266f4e9c2c741236b86da5f052;hb=1bf86fd7039ecb70ae32de0c87eb8f450a93d9d7;hp=02288581d0f551f7ad79b21bddf90875cdea9ece;hpb=2b830298ef5b9b33680f3dc7857365fcaf153938;p=csit.git diff --git a/resources/tools/presentation/generator_files.py b/resources/tools/presentation/generator_files.py index 02288581d0..ef06cad519 100644 --- a/resources/tools/presentation/generator_files.py +++ b/resources/tools/presentation/generator_files.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -203,15 +203,7 @@ def file_details_split(file_spec, input_data, frmt=u"rst"): for idx, tbl_file in enumerate(table_lst): if suite[u"name"] in tbl_file: chapters[chapter_l1][chapter_l2][nic][u"tables"].append( - ( - table_lst.pop(idx), - 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) - ) + (table_lst.pop(idx), suite[u"doc"]) ) break titles = {