Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Fix Bug: support \nor for type (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
yannanwang1 authored and bianliu1013 committed Oct 25, 2017
1 parent 94b91ba commit 2943686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docfx_yaml/monkeypatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def extract_exception_desc(field_object):
returntype_ret = transform_node(returntype_node)
if returntype_ret:
# Support or in returntype
for returntype in re.split(' or[ \n]', returntype_ret):
for returntype in re.split('[ \n]or[ \n]', returntype_ret):
returntype, _added_reference = resolve_type(returntype)
if _added_reference:
if len(data['references']) == 0:
Expand All @@ -265,7 +265,7 @@ def extract_exception_desc(field_object):
if fieldtype.name == 'parameter':
if _type:
# Support or in parameter type
for _s_type in re.split(' or[ \n]', _type):
for _s_type in re.split('[ \n]or[ \n]', _type):
_s_type, _added_reference = resolve_type(_s_type)
if _added_reference:
if len(data['references']) == 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setup(
name='sphinx-docfx-yaml',
version='1.2.24',
version='1.2.25',
author='Eric Holscher',
author_email='eric@ericholscher.com',
url='https://github.com/ericholscher/sphinx-docfx-yaml',
Expand Down

0 comments on commit 2943686

Please sign in to comment.