[PATCH] hgweb: wrap long lines in file source

Laurens Holst laurens.nospam at grauw.nl
Wed Jun 26 15:08:51 CDT 2013


Op 26-06-13 19:11, Alexander Plavin schreef:
> 2013/6/26 Laurens Holst <laurens.nospam at grauw.nl>:
>>> and more
>>> important, with very inconvenient scrollbar at the very bottom of the
>>> page? The first time I saw this it made me think about a bug in
>>> displaying.
>>
>> Scrollbar at the bottom is a little inconvenient, sure, but you can also
>> scroll horizontally with many mouse wheels, or by middle-clicking and moving
>> the cursor to the right, or by moving two fingers to the right on a touch
>> pad, or by selecting text and dragging to your right. The scrollbars are
>> hardly ever being used any more nowadays.
> I've not meant using the scrollbars, but just looking at them to see
> that it's not the full width.

I see. Usually you can see this from the content, because half of a 
letter or a word is missing, or a statement isn’t complete.

But I agree it’s not 100% ideal. It would be nicer if we could get the 
background to match the overflow, so that we can use the horizontal 
scrollbar on the window without the overflow rendering. But... CSS can 
be fussy about controlling the horizontal width.

>> I am not in favour of wrapping the source code, because that can visually
>> disturb the indentation. It may not be so bad on desktop-sized displays, but
>> especially on smaller screens like tablets or mobile phones this can render
>> code virtually unreadable. In some languages (e.g. our beloved python) new
>> lines can even significantly alter the meaning of code.
> The line numbers and stripes help in this case :)

Somewhat. :)

Not enough in my opinion. I’d rather have the source presented to me 
exactly the way it is.

~Laurens



More information about the Mercurial-devel mailing list