Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you ignore all styling tags? #185

Closed
SlidingHorn opened this issue Jun 30, 2021 · 3 comments
Closed

Can you ignore all styling tags? #185

SlidingHorn opened this issue Jun 30, 2021 · 3 comments

Comments

@SlidingHorn
Copy link

There's a particular website I read from time to time (darkreading dot com) that, for some reason, renders with all of the articles' body text centered. Strangely, the articles on the site do not render this way in GUI browsers (e.g. firefox, qutebrowser).

I'm wondering if there's a way to somehow ignore styling on this and other page(s), as the centered text is more difficult to read.

Thanks in advance for any help!

$ w3m -version
w3m version w3m/0.5.3+git20190105, options lang=en,m17n,image,color,ansi-color,mouse,gpm,menu,cookie,ssl,ssl-verify,external-uri-loader,w3mmailer,nntp,gopher,ipv6,alarm,mark,migemo

Distro: Ubuntu 20.04

tats added a commit that referenced this issue Jul 3, 2021
@tats
Copy link
Owner

tats commented Jul 3, 2021

New option disable_center is now available. e.g. w3m -o disable_center=1

It will be included in Ubuntu 21.10.

@tats tats closed this as completed Jul 3, 2021
@SlidingHorn
Copy link
Author

is there any hack to accomplish this in my current version? I usually only run LTS and don't particularly intend to upgrade my whole distro for a while...

If not, I'll live with the centering for a while - just curious.

Thanks!

@tats
Copy link
Owner

tats commented Jul 4, 2021

You may build your own version of the package on your Ubuntu/Debian system.

Example of backporting:

  # apt-get build-dep w3m
  # apt-get install fakeroot devscripts
  $ dget https://deb.debian.org/debian/pool/main/w/w3m/w3m_0.5.3+git20210102-6.dsc
  $ ls -dl w3m*
  $ cd w3m-0.5.3+git20210102
  $ uscan
  $ ls -dl ../w3m*
  $ cd ../w3m-0.5.3+git20210703
  $ editor debian/patches/series
    (remove or comment out unneeded patches)
  $ dch
    (edit changelog, set your own version such as -1~LOCAL1)
  $ dpkg-buildpackage -r -uc -b
  $ ls -dl ../w3m*
  # dpkg -i ../w3m_*.deb ../w3m-img_*.deb

bptato pushed a commit to bptato/w3m that referenced this issue Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants