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

Commit

Permalink
Remove \n for all return type (#55)
Browse files Browse the repository at this point in the history
* Remove \n for all return type

* Update setup.py
  • Loading branch information
yannanwang1 authored and bianliu1013 committed Jul 10, 2017
1 parent ea27c02 commit a7e9ede
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 @@ -209,8 +209,8 @@ def extract_exception_desc(field_object):
for returntype in returntype_ret.split(' or '):
# Remove @ and \n for cross reference in return type to apply to docfx correctly
if returntype.startswith('@'):
returntype = returntype[1:].rstrip('\n')
data['return'].setdefault('type', []).append(returntype)
returntype = returntype[1:]
data['return'].setdefault('type', []).append(returntype.rstrip('\n'))
if fieldtype.name == 'returnvalue':
returnvalue_ret = transform_node(content[1][0])
if returnvalue_ret:
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.14',
version='1.2.15',
author='Eric Holscher',
author_email='eric@ericholscher.com',
url='https://github.com/ericholscher/sphinx-docfx-yaml',
Expand Down

0 comments on commit a7e9ede

Please sign in to comment.