Skip to content

Commit

Permalink
fixes #70
Browse files Browse the repository at this point in the history
  • Loading branch information
lnoor committed Dec 30, 2021
1 parent 4cd85ab commit ccd4887
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@ This software is made available under the GPL v3.
Changelog
=========

Version 1.17.2
--------------

`Ezequiel Orbe <https://github.com/eorbe>`_ found, reported and fixed a bug escaping backspaces.

Version 1.17.0
--------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
# The short X.Y version.
version = u'1.17'
# The full version, including alpha/beta/rc tags.
release = u'1.17.1'
release = u'1.17.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
5 changes: 5 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ Indices and tables
Changelog
=========

Version 1.17.2
--------------

`Ezequiel Orbe <https://github.com/eorbe>`_ found, reported and fixed a bug escaping backspaces.

Version 1.17.0
--------------

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='sphinx-jsonschema',
version='1.17.1', # don't forget: must match __init__.py::setup() return value
version='1.17.2', # don't forget: must match __init__.py::setup() return value

description='Sphinx extension to display JSON Schema',
long_description=long_description,
Expand Down
6 changes: 3 additions & 3 deletions sphinx-jsonschema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ def construct_mapping(loader, node):
yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG,
construct_mapping)

text = text.replace('\\(', '\\\\(')
text = text.replace('\\)', '\\\\)')
text = text.replace(r'\\(', r'\\\\(')
text = text.replace(r'\\)', r'\\\\)')
try:
result = yaml.load(text, OrderedLoader)
except yaml.scanner.ScannerError:
Expand All @@ -326,5 +326,5 @@ def setup(app):
app.add_config_value('jsonschema_options', {}, 'env')
return {
'parallel_read_safe': True,
'version': '1.17.1'
'version': '1.17.2'
}

0 comments on commit ccd4887

Please sign in to comment.