Skip to content

Commit

Permalink
fixup! feat: Insert referencegroup trarget for subseries
Browse files Browse the repository at this point in the history
  • Loading branch information
kesara committed Feb 19, 2024
1 parent 27d81a7 commit 248994f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions xml2rfc/writers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
'add_xinclude': None,
'allow_local_file_access': False,
'basename': None,
'bcp_base_url': 'https://www.rfc-editor.org/bcp/',
'bom': False,
'cache': None,
'clear_cache': False,
Expand All @@ -73,14 +72,14 @@
'external_js': False,
'filename': None,
'first_page_author_org': True,
'fyi_base_url': 'https://www.rfc-editor.org/fyi/',
'html': False,
'id_base_url': 'https://datatracker.ietf.org/doc/html/',
'id_reference_base_url': 'https://datatracker.ietf.org/doc/html/',
'id_is_work_in_progress': True,
'image_svg': False,
'indent': 2,
'info': False,
'info_base_url': 'https://www.rfc-editor.org/info/',
'inline_version_info': True,
'legacy': False,
'legacy_date_format': False,
Expand Down Expand Up @@ -111,7 +110,6 @@
'silence': default_silenced_messages,
'skip_config_files': False,
'source': None,
'std_base_url': 'https://www.rfc-editor.org/std/',
'strict': False,
'table_hyphen_breaks': False,
'table_borders': 'full',
Expand Down
6 changes: 3 additions & 3 deletions xml2rfc/writers/preptool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1219,9 +1219,9 @@ def series_order(s):

def referencegroup_insert_target(self, e, p):
target_pattern = {
"BCP": os.path.join(self.options.bcp_base_url, 'bcp{value}'),
"STD": os.path.join(self.options.std_base_url, 'std{value}'),
"FYI": os.path.join(self.options.fyi_base_url, 'fyi{value}'),
"BCP": os.path.join(self.options.info_base_url, 'bcp{value}'),
"STD": os.path.join(self.options.info_base_url, 'std{value}'),
"FYI": os.path.join(self.options.info_base_url, 'fyi{value}'),
}

if not e.get('target'):
Expand Down

0 comments on commit 248994f

Please sign in to comment.