Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML fails to load when IDE uses \t charaters instead of spaces #21

Closed
jbold569 opened this issue Feb 4, 2020 · 1 comment
Closed

Comments

@jbold569
Copy link

jbold569 commented Feb 4, 2020

Describe the bug
YAML will fail to load with \t characters in the docstring. Technically developers should know not to use tabs when writing their yaml docstrings, but the IDE doesn't know the difference better the python lines and yaml lines when their in the same file.

To Reproduce
Steps to reproduce the behavior:

  1. replace the spaces in a simple yaml doc string with tabs instead of multiple spaces
  2. load the swagger-ui page

Expected behavior
Would expect no difference.

Desktop (please complete the following information):

  • OS: Win
  • Browser: chrome

Additional context
Should be as simple as a replace function to replace \t with multiple spaces before safe_load(...)

@mrk-andreev
Copy link
Owner

Thanks, it was fixed in version 1.2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants