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

image alignment bug? #3657

Closed
samuelstanton opened this issue Jan 2, 2023 · 2 comments
Closed

image alignment bug? #3657

samuelstanton opened this issue Jan 2, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@samuelstanton
Copy link

Environment

Python Version: 3.10.8

Nikola Version:. 8.2.3

Operating System: macOS 12.6.1

Description:

I have a simple home page for my blog that looks like this:

.. title: Home  
.. slug: index
.. type: text

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

.. image:: /images/illus_001.jpg
  :width: 25%
  :align: center

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

I would expect the sample image to be centered as described here https://restructuredtext.documatt.com/element/image.html, however this is how the alignment looks when the site is built and served

image

What gives?

@Kwpolska Kwpolska self-assigned this Jan 2, 2023
@Kwpolska Kwpolska added this to the v8.2.4 milestone Jan 2, 2023
@Kwpolska
Copy link
Member

Kwpolska commented Jan 2, 2023

Docutils output changed in a recent version, and our CSS didn’t match it. It should be fixed on master.

@samuelstanton
Copy link
Author

verified it works on master

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

No branches or pull requests

2 participants