getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.6k stars 445 forks source link

Double colon ":" in aligned text #3628

Closed jonasstein closed 2 years ago

jonasstein commented 2 years ago

Environment

Python Version: Python 3.9.13

Nikola Version: Nikola 8.2.2

Operating System: Gentoo Linux

Description:

Aligned text in .rst with the following source

Öffnungszeiten
==============

:Montag:     geschlossen 
:Dienstag:   geschlossen
:Mittwoch:   11:30 - 15:00 und 17:00 - 21:00
:Donnerstag: 11:30 - 15:00 und 17:00 - 21:00
:Freitag:    11:30 - 15:00 und 17:00 - 21:00
:Samstag:    11:30 - 21:00
:Sonntag:    12:30 - 21:00

is rendered as: image

I marked the section with the mouse. Note that one colon is not marked. Perhaps it is added by css? See live website on http://yenyen.de/ The .html output was

<dt>Donnerstag<span class="colon">:</span>
</dt>

I changed it manually to

<dt>Donnerstag<span class="colon"></span>
</dt>

Now I have an unwanted space before the colon.

ralsina commented 2 years ago

Yeah, it's coming from rst_base.css ... you can override it in your custom.css but we should probably remove it, I'll do a quick PR for it.

On Sun, Jun 5, 2022 at 9:49 AM Jonas Stein @.***> wrote:

Environment

Python Version: Python 3.9.13

Nikola Version: Nikola 8.2.2

Operating System: Gentoo Linux Description:

Aligned text in .rst with the following source

Öffnungszeiten

==============

:Montag: geschlossen

:Dienstag: geschlossen

:Mittwoch: 11:30 - 15:00 und 17:00 - 21:00

:Donnerstag: 11:30 - 15:00 und 17:00 - 21:00

:Freitag: 11:30 - 15:00 und 17:00 - 21:00

:Samstag: 11:30 - 21:00

:Sonntag: 12:30 - 21:00

is rendered as: [image: image] https://user-images.githubusercontent.com/298682/172051090-d484f41f-22eb-42cc-b729-9f62ab439903.png

I marked the section with the mouse. Note that one colon is not marked. Perhaps it is added by css? See live website on http://yenyen.de/

— Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola/issues/3628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAMK4SRP3FJZX4C2PIN73VNSO3TANCNFSM5X5AJLDQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ralsina commented 2 years ago

https://github.com/getnikola/nikola/pull/3629

On Mon, Jun 6, 2022 at 9:26 AM Roberto Alsina @.***> wrote:

Yeah, it's coming from rst_base.css ... you can override it in your custom.css but we should probably remove it, I'll do a quick PR for it.

On Sun, Jun 5, 2022 at 9:49 AM Jonas Stein @.***> wrote:

Environment

Python Version: Python 3.9.13

Nikola Version: Nikola 8.2.2

Operating System: Gentoo Linux Description:

Aligned text in .rst with the following source

Öffnungszeiten

==============

:Montag: geschlossen

:Dienstag: geschlossen

:Mittwoch: 11:30 - 15:00 und 17:00 - 21:00

:Donnerstag: 11:30 - 15:00 und 17:00 - 21:00

:Freitag: 11:30 - 15:00 und 17:00 - 21:00

:Samstag: 11:30 - 21:00

:Sonntag: 12:30 - 21:00

is rendered as: [image: image] https://user-images.githubusercontent.com/298682/172051090-d484f41f-22eb-42cc-b729-9f62ab439903.png

I marked the section with the mouse. Note that one colon is not marked. Perhaps it is added by css? See live website on http://yenyen.de/

— Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola/issues/3628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAMK4SRP3FJZX4C2PIN73VNSO3TANCNFSM5X5AJLDQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>