getnikola / nikola-themes

Themes for Nikola
https://themes.getnikola.com/
71 stars 51 forks source link

[foundation6 theme] Source code line numbers out of place #153

Open hartwork opened 6 years ago

hartwork commented 6 years ago

Hi!

Should I report here or rather to https://github.com/okin/nikola-theme-foundation6? As you can see in this shot, line numbers are not aligned to the related line with this theme. This is recent Chromium.

foundation6_source_code

It's a pity, because the theme has a unique style.

PS: There are more themes that have a similar issue. Should I make dedicated tickets per theme?

Kwpolska commented 6 years ago

Here would probably be better. @okin, any ideas?

okin commented 6 years ago

Don't have an idea yet but can take a look.

To reproduce: restructuredText with code directive like shown in the handbook?

Kwpolska commented 6 years ago

That, or a listing. Perhaps some adjustments for scrollbars or word wrap are needed?

hartwork commented 6 years ago

To reproduce: restructuredText with code directive like shown in the handbook?

Probably. (It's Markdown over here.Some blocks get numbers, some don't , not sure yet why.)

hartwork commented 6 years ago

For reproduction (with Bash):

cd "$(mktemp -d)"
yes '' | nikola init f6_play >/dev/null
cd f6_play/
nikola theme -i foundation6 >/dev/null
sed 's,^THEME = .*,THEME = "foundation6",' -i conf.py
echo $'.. date: 2018-05-18\n\nProlog\n\n    #! /bin/bash\n    two\n    three\n\nEpilog' > posts/sourcedemo.md
nikola build >/dev/null
chromium output/index.html &

Please note the $ in the line using echo.