Ticket #520 (new defect )

Opened 5 years ago

Last modified 3 years ago

indentation problem with certain html docs and Safari browser

Reported by: speno Assigned to: radix
Type: defect Priority: high
Milestone: Component: website
Keywords: Cc: spiv, hypatia, speno, tekNico
Branch: Author:
Launchpad Bug:

Attachments

Change History

  2004-02-20 22:40:01+00:00 changed by speno

When using the Safari browser, certain python code examples in the web docs have the wrong
identation.
Specifically http://www.twistedmatrix.com/documents/howto/clients is one that does. The second level
of indent isn't working, so statements under a function def are lined up with the def statement itself
instead of being properly indented.
That makes the code examples hard to read.
This may be a Safari bug, because it renders fine with the other browsers I've tried (Firebox and
IE). However, I did notice the use of some undefined style elements in those documents as they appear
on the twistedmatrix.com site. I
couldn't find style definitions for py-src-indent and py-src-dedent in any .css in Twisted. Maybe that
has something to do with this problem? I'm pretty clueless about html and css issues, alas.
p.s. it would be nice if the 'Change Note' text entry field on the bug tracker showed more lines. It's so
small I don't even get a scrollbar thumb. :-)

  2004-02-21 00:21:09+00:00 changed by radix

> html and css issues, alas.
Yeah, they're just there because the htmlizer we use wraps a style
around *all* token types, but we don't want to format indentation or
dedentation in any special way, so we don't. The correct indentation
(i.e., spaces) *are* in the output HTML file, and those are contained
inside a <pre> element, so afaik, the browser needs to render those
spaces literally.
> p.s. it would be nice if the 'Change Note' text entry field on the bug tracker showed more lines. It's so
> small I don't even get a scrollbar thumb. :-)
Sounds like Safari is screwy in more than one way :-) The note entry
field is certainly bigger than that on other browsers (6 lines high, in
my mozilla-firebird 0.7).

  2004-02-21 01:01:32+00:00 changed by speno

Thanks. Now I see that indeed its literal spaces in there. That'll help me make a small test case to
reproduce this in Safari.
Regarding the size of this Change Note box in roundup, the source defines it as 5 lines high. I think
being able to
see more lines would make it easier to report bugs, but that's just my opinion. I think you should crank
it all the way up to 11.
Take care.

  2004-04-03 09:52:08+00:00 changed by hypatia

Reassigning to spiv, since it sounds more like this is about Lore's output than
about the content of the documentation.

  2006-04-30 14:55:55+00:00 changed by tekNico

  • cc changed from spiv, hypatia, speno to spiv, hypatia, speno, tekNico

  2006-05-01 14:33:21+00:00 changed by radix

  • owner changed from spiv to radix
Note: See TracTickets for help on using tickets.