2882: Underscores in comments are not displayed in Google Chrome

arto****@gmai***** (Google Code) (Is this you? Claim this profile.)
Aug. 7, 2013
What version are you running?
1.7.3 alpha 0

What's the URL of the page containing the problem?
http://reviews.reviewboard.org/r/3708/diff/

What steps will reproduce the problem?
1. View the diff in the link
2. Scroll to line 183 of reviewboard/settings.py

What is the expected output? What do you see instead?
The line says "# CACHE_BACKEND is specified in settings_local.py". However, the underscore isn't visible in Google Chrome because comments are displayed in italics.

What operating system are you using? What browser?
Windows 7 x64 Enterprise
Google Chrome 24.0.1312.56 m


This only happens in Google Chrome and only when the underscores are in commented code.
chipx86
#1 chipx86
I'm not sure this is a Review Board bug. It looks more like a rendering issue in Chrome, or a font issue. Chrome is known to break things drastically from release to release, so it wouldn't shock me if something changed.

Can you try changing your monospace font and see if anything is fixed?
  • +NeedInfo
  • +Browser
#2 arto****@gmai***** (Google Code) (Is this you? Claim this profile.)
You're right. Changing the monospace font helps, as well as displaying the text not in italics or zooming (90% and 110% both work).

I've read a little into the subject of browsers and faulty monospace rendering.
While changing the font manually may help, in the long term a css fix on your side to prevent odd font rendering might be a more suitable option if the problem persists.

Either way, thanks for your help!
david
#3 david
  • -NeedInfo
    +ThirdParty