Closed (fixed)
Project:
GeSHi Filter for syntax highlighting
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Dec 2008 at 11:01 UTC
Updated:
31 Aug 2009 at 20:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedNot to forget I'm using an external CSS file.
Aside - is this
line_numbering=1 linenumbers_start=98somewhere documented? I reviewed the code to figure out... this was very time consuming. Would be great if the available features would be documented - I think there are more and the GeSHi docu doesn't help here as this seems to be Drupal module specific.Comment #2
hass commentedComment #3
hass commentedThe cut off with 3 digit's or more happens in IE, too.
Comment #4
soxofaan commentedI can't reproduce with FireFox 3, nor Opera 9.51 on Mac OS X
From you screenshot, it appears you're on Windows, is that right?
Also, I guess it is theme related, what theme do you use? (I used Garland to test)
Currently, it's documented in the filter tips (example.com/?q=filter/tips).
But also check out #272435: Usability tweaks for admin (which e.g. put some simple usage examples in the README file)
Comment #5
hass commentedYes, I tried this with Firefox. In IE7 it was ok with two digits, but not with 3 if line numbers grow about a value of 99. I'm using the YAML Admin theme (http://www.yaml-fuer-drupal.de/de/download).
Comment #6
hass commentedFound the source, but don't understand why...
If this margin is set the numbers go hidden:
If I remove the above the below takes precedence and it works as it should. This is part of the global theme reset styles that makes all browsers behave the same way.
Do you really need to set the margin for
.geshifilter ol?Comment #7
hass commentedTraced it down... it's
.geshifilter ol { margin-left: 0; }that causes this issues.Comment #8
hass commentedHow about changing:
to:
I have not seen any diff's in UI except this two values in Garland...
Comment #9
soxofaan commentedwhat about
?
Comment #10
hass commentedSeems not working as expected. The bottom style is not overridden to the value 0 for example. I also tried using
margin: 0 0 0 inherit;, but this isn't working too. No idea why this don't work...Comment #11
dennys commentedI have the same prblem with Analytic theme (http://drupal.org/project/analytic). Client is Firefox 3.0.10 on Windows
Change the padding-left to "2em" works.
But change "inherit" doesn't work.
ps: Garland theme is ok.
Comment #12
soxofaan commentedI've been working a bit on the CSS rules for GeSHi filter code blocks and think I found the necessary CSS-resets to make line numbering work in most themes.
See patch in attachment
It also incorporates some smaller fixes for other related issues (e.g. #549594: Code is added next line down from line numbers)
I hope someone can try if it works for his setup/theme.
Comment #13
soxofaan commentedBecause this issue is blocking some other work, I decided to commit the patch from #12
http://drupal.org/cvs?commit=252226
it makes the CSS cleaner anyway and should make GeSHi filter code blocks a bit more robust against various themes.
Follow up reports/patches are welcome, so please reopen the issue if you still have problems with your theme/setup.
E.g. With the Acquia Slate theme, the CSS resets for the ol/li elements do not work (because Acquia Slate uses very specific rules). I could add !important rules to solve this, but I'd like to avoid !important-hacks, the issue with Acquia Slate is very minor anyway.