tats / w3m

Debian's w3m: WWW browsable pager
https://tracker.debian.org/pkg/w3m
Other
870 stars 91 forks source link

secret internal -cols limit #286

Open jidanni opened 11 months ago

jidanni commented 11 months ago

https://branch.taipower.com.tw/d105/xcnotice?xsmsid=0M242581317628413301 has long lines in it.

One would think that w3m -dump -cols 999999 would avoid splitting any lines.

Alas, we run into w3m's secret undocumented internal limit, so columns still get split.

$ w3m -dump -cols 999999 $@|perl -nwle 'print length;'|sort -n|tail
1533
1533
...

At least lynx documents theirs,

-width=NUMBER number of columns for formatting of dumps, default is 80. This is limited by the number of columns that Lynx could display, typically 1024 (the MAX_LINE symbol).

rkta commented 11 months ago

Sent a patch?

jidanni commented 11 months ago

Somebody knows what the limit is, could write a document patch. And in fact implement a way to work around it, that lynx also might have.

rkta commented 11 months ago

On Sun, Nov 19, 2023 at 08:35:03PM -0800, 積丹尼 Dan Jacobson wrote:

Somebody knows what the limit is, could write a document patch. And in fact implement a way to work around it, that lynx also might have.

I'm pretty sure no one knows the limit without digging through the code and looking for it. So instead of demanding that 'somebody' should write a patch, you could have a look at code and write that patch.