Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'padding': 0.07; 'puts': 0.07; 'inherited': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'works.': 0.09; 'bug': 0.12; 'jan': 0.12; '#999999;': 0.16; 'file).': 0.16; 'intended.': 0.16; 'line-height': 0.16; 'notations': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'reminded': 0.16; 'right;': 0.16; 'subject:program': 0.16; 'two.': 0.16; 'size,': 0.16; 'wrote:': 0.18; 'slightly': 0.19; 'separate': 0.22; 'header:User-Agent:1': 0.23; 'adds': 0.24; 'cc:2**0': 0.24; 'source': 0.25; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'gather': 0.31; 'padding:': 0.31; 'styles': 0.31; 'vertical': 0.31; 'file': 0.32; 'text': 0.33; 'but': 0.35; 'there': 0.35; 'entry': 0.36; 'useful': 0.36; 'branch': 0.38; 'needed': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'numbers': 0.61; 'received:173': 0.61; 'more': 0.64; 'different': 0.65; 'importantly,': 0.68; 'default': 0.69; 'other.': 0.75; 'sans-serif;': 0.78; 'fonts': 0.84; 'received:fios.verizon.net': 0.84; 'verdana,': 0.84; 'verifying': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Python Coverage: testing a program Date: Thu, 24 Oct 2013 19:55:38 -0400 References: <5268a818$0$30000$c3e8da3$5496439d@news.astraweb.com> <7wtxg7cfww.fsf@benfinney.id.au> <526908b2$0$29981$c3e8da3$5496439d@news.astraweb.com> <52695CFB.9010309@nedbatchelder.com> <526984F3.3040905@udel.edu> <7weh7acrv8.fsf_-_@benfinney.id.au> <5269A0D2.9000200@udel.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-59-117-133.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: <5269A0D2.9000200@udel.edu> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382658956 news.xs4all.nl 15864 [2001:888:2000:d::a6]:50236 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57482 On 10/24/2013 6:36 PM, Terry Reedy wrote: > OK, I added .coveragerc and that works. In the process of verifying > this, I was reminded that there is an overt bug in the html report as > displayed by Firefox. The fonts used for line numbers > ("class='linenos'") and line text ("class='text'") are slightly > different and, more importantly, with difference sizes (line numbers are > larger). So corresponding numbers and text do not line up with each > other. This makes the J,K hotkeys and missing branch notations much less > useful than intended. If I use cntl-scrollwheel to change text size, > both change in the same proportion, so the mismatch is maintained. I found the style.css file and the linenos entry that works to make numbers and text line us is, *after correction*: /* Source file styles */ .linenos p { text-align: right; margin: 0; padding: 0 .5em 0 .5em; color: #999999; font-family: verdana, sans-serif; font-size: .625em; /* 10/16 */ /* line-height: 1.6em; /* 16/10 */ } Padding was '0 .5em', which I gather is the same as '0 .5em .5em .5em', which adds padding to both top and bottom, instead of just one of the two. The corresponding text padding is '0 0 0 .5em'. The extra .5 for numbers puts padding needed on the right to separate numbers from the vertical green bars. The commented-out line-height added to mis-alignment. The verdana numerals *are* larger than those for the inherited page default (font: 'inherit' at the top of the file). But they do not cause misalignment. -- Terry Jan Reedy