About http://mercurial.selenic.com/

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Apr 30 17:29:18 UTC 2012


On Wed, 18 Apr 2012 16:52:38 -0500, Matt Mackall <mpm at selenic.com> wrote:
>On Wed, 2012-04-18 at 23:02 +0200, Johan Holmberg wrote:
>> The page http://mercurial.selenic.com/ has a "Quick Start" column to
>> the right. But for as long as I can remember my browsers (Firefox,
>> Safari and Chrome) fail to show the full text of the example. The
>> first line show up as something like:
>> 
>>     $ hg clone http://selenic.com/re

> Well, from interacting with thousands of n00bs, I'm beginning to
> suspect the quickstart does more harm than good. Having people commit
> and merge without any mental model of the underlying DAG seems to
> cause lots of trouble.
>
> Seems to work for me on Firefox on Linux, Chrome exhibits the cut-off.
> This is apparently due to a disagreement on what font / point size to
> use.

It may be worth explicitly setting the font-size of <pre> elements to a
fixed point- or pixel-based size. The column itself has a hardcoded
pixel-based width of 295px. so presumably the CSS author knows that
there's only "so many" characters that can fit in the space of a
horizontal line.

Something like this seems to work better:

  pre {
    font-size: 13px !important;
  }

With the Consolas font that seems to be the one recommended by the
current stylesheet, this means that the average character width is small
enough to fit the entire line of 'hg clone':

  "$ hg clone http://selenic.com/repo/hello"




More information about the Mercurial mailing list