[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #14880 [Website]: Remove 1px border from img inside table



#14880: Remove 1px border from img inside table
-------------------------+-----------------------
     Reporter:  dcf      |      Owner:  Sebastian
         Type:  defect   |     Status:  new
     Priority:  minor    |  Milestone:
    Component:  Website  |    Version:
   Resolution:           |   Keywords:
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+-----------------------

Comment (by dcf):

 Here is how the borders look on download-unix.html:
 [[Image(borders.png)]]
 This is the script I used to search for img nested in table:
 {{{
 #!/usr/bin/env python
 import getopt
 import sys
 from bs4 import BeautifulSoup
 opts, args = getopt.gnu_getopt(sys.argv[1:], "")
 for filename in args:
     with open(filename) as f:
         soup = BeautifulSoup(f)
         for table in soup.find_all("table"):
             for img in table.find_all("img"):
                 print filename, img
 }}}
 I ran it like this:
 {{{
 find . -name '*.html.en' | xargs ./search.py
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/14880#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs