lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] lynx -dump -width caps out at 1000 characters


From: Stefan Caunter
Subject: Re: [Lynx-dev] lynx -dump -width caps out at 1000 characters
Date: Tue, 27 Sep 2011 17:20:38 -0400

On Tue, Sep 27, 2011 at 5:15 PM, Thomas Dickey <address@hidden> wrote:
> On Tue, 27 Sep 2011, Jay Hacker wrote:
>
>> I'm trying to dump some web pages with very long paragraphs, and it's
>> important to maintain correct paragraph boundaries.  I tried:
>>
>>   $ lynx -dump -width 1000000 mypage.html
>>
>> but it seems paragraphs still get wrapped at about 1000 characters.
>> Is there a hard limit on the maximum paragraph wrap width?  Can it be
>> increased?
>
> long:
>
> It's a compiled-in limit.  There are a few interrelated limits, including
> this, and some scattered buffer-sizes (which as I recall are assumed to
> be larger than this).  This is also an assumption in the memory-allocation
> scheme used that this size is fairly small relative to the chunk-size.
>
> short:
>
> with some work, it's probably doable to rebuild lynx with a larger
> fixed-limit (and making that configurable is an item on my to-do list), but
> eliminating the fixed-limit altogether is a lot of work, because
> lynx uses a _lot_ of fast allocations when building up the display.
>

1000000 as a width seems high, and unlikely to render on any screen
I've ever seen. Are the pages on a webserver you control, or are you
-dumping out someone else's pages?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]