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

RST parser introduces newlines inside SVG image links #1367

Open
mondeja opened this issue Jul 15, 2020 · 0 comments · May be fixed by #1368
Open

RST parser introduces newlines inside SVG image links #1367

mondeja opened this issue Jul 15, 2020 · 0 comments · May be fixed by #1368

Comments

@mondeja
Copy link

mondeja commented Jul 15, 2020

Minimal example reproducing the issue

Next piece of code...

|build-status| |coverage| |license| |wheel|

.. |build-status| image:: https://secure.travis-ci.org/celery/django-celery-beat.svg?branch=master
    :alt: Build status
    :target: https://travis-ci.org/celery/django-celery-beat

.. |coverage| image:: https://codecov.io/github/celery/django-celery-beat/coverage.svg?branch=master
    :target: https://codecov.io/github/celery/django-celery-beat?branch=master

.. |license| image:: https://img.shields.io/pypi/l/django-celery-beat.svg?foo=bar
    :alt: BSD License
    :target: https://opensource.org/licenses/BSD-3-Clause

.. |wheel| image:: https://img.shields.io/pypi/wheel/django-celery-beat.svg
    :alt: django-celery-beat can be installed via wheel
    :target: http://pypi.python.org/pypi/django-celery-beat/

is rendered as:

<p><a class="reference external" href="https://travis-ci.org/celery/django-celery-beat"><img alt="Build status" src="https://secure.travis-ci.org/celery/django-celery-beat.svg?branch=master" /></a> <a class="reference external" href="https://codecov.io/github/celery/django-celery-beat?branch=master"><img alt="coverage" src="https://codecov.io/github/celery/django-celery-beat/coverage.svg?branch=master" /></a> <a class="reference external" href="https://opensource.org/licenses/BSD-3-Clause"><img alt="BSD License" src="https://img.shields.io/pypi/l/django-celery-beat.svg?foo=bar" /></a> <a class="reference external" href="http://pypi.python.org/pypi/django-celery-beat/"><img alt="django-celery-beat can be installed via wheel" src="https://img.shields.io/pypi/wheel/django-celery-beat.svg">
</a></p>
  • Note the newline inside a tag after last image.
  • If I add ?foo=bar after the image URL (see the third badge), the newline is not added.

You can see how is rendered this here (note the underline after some badges hovering the mouse).

@mondeja mondeja changed the title RST parser introduces newlines after SVG images RST parser introduces newlines inside SVG image links Jul 15, 2020
@mondeja mondeja linked a pull request Jul 15, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant