Python Forum
cosmetic glitch in tutorial - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: cosmetic glitch in tutorial (/thread-31896.html)



cosmetic glitch in tutorial - penhelm - Jan-08-2021

(If you're short on time, feel free to skip this post.)

I have found a cosmetic glitch in the tutorial at:
https://docs.python.org/3/tutorial/introduction.html#lists

[attachment=1045]

It renders just fine on macOS Safari.
The glitch appears in iOS 13.7 Safari and the latest iOS Chrome.


The HTML being used is:
<p>One way to remember how slices work is to think of the indices as pointing
<em>between</em> characters, with the left edge of the first character numbered 0.
Then the right edge of the last character of a string of <em>n</em> characters has
index <em>n</em>, for example:</p>
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span> <span class="o">+---+---+---+---+---+---+</span>
<span class="o">|</span> <span class="n">P</span> <span class="o">|</span> <span class="n">y</span> <span class="o">|</span> <span class="n">t</span> <span class="o">|</span> <span class="n">h</span> <span class="o">|</span> <span class="n">o</span> <span class="o">|</span> <span class="n">n</span> <span class="o">|</span>
<span class="o">+---+---+---+---+---+---+</span>
<span class="mi">0</span> <span class="mi">1</span> <span class="mi">2</span> <span class="mi">3</span> <span class="mi">4</span> <span class="mi">5</span> <span class="mi">6</span>
<span class="o">-</span><span class="mi">6</span> <span class="o">-</span><span class="mi">5</span> <span class="o">-</span><span class="mi">4</span> <span class="o">-</span><span class="mi">3</span> <span class="o">-</span><span class="mi">2</span> <span class="o">-</span><span class="mi">1</span>
</pre></div>
</div>

It looks like another tutorial page doesn't line up right either.
[ https://docs.python.org/3/tutorial/controlflow.html ,
go down to "parrot(1000)" - comments on the right aren't even. ]

Would be happy to tell Apple or whatever.


RE: cosmetic glitch in tutorial - Larz60+ - Jan-08-2021

python-forum.io is not part of python.org

Please read: https://python-forum.io/misc.php?action=help&hid=48