ju <j...@riseup.net> writes: > Or maybe they wanted to say <<These critiques may contain>>?
No, that's not possible as the full sentence is: « These critiques contain may important ideas and so are worth summarising. » >> I just thought it was a typo, and that it would have been nice to >> report >> it. I also downloaded the version proposed in #773529, and I can >> confirm this >> bug still applies. > > Now that #773529 is closed and the bug still applies, maybe is better a > PR to the repository where the sources are now?. > I'd like to, but the way anarchism 15 is being uploaded right now makes me really feel uncomfortable: - there's tons of trailing whitespaces (at least in debian/changelog and some html files). If I open my editor on a file, I end up changing tons of lines. Shall I use sed to change a typo, or shall you fix your whitespaces first? - the .html is not anymore readable by a human, it's just a bunch of parsed content. Do I really have to create a patch of (at least) 8K just to add a letter? - there's now multiple directories having the same content, instead of just one html/ from where to get all other file formats. How am I supposed to fix this typo? Do I have to fix it in all 3 places? Even if I wanted to fix the problem at the root, the script you used to generate it's not in the package itself, and is *big*. I'm not even sure anymore where I am contributing now. Before anarchism 15 was released I tried to help a bit myself, and ended up with the attached relevant debian/ files. My solution has clearly more little errors than yours, but at least anybody can reprocude it. Maybe you can find something helpful from there to help me fix this issue. Hasta la pasta,
rules
Description: Binary data
control
Description: Binary data
#!/usr/bin/env python2 import sys from bs4 import BeautifulSoup as BS html = BS( ''' <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> </body> </html> ''', 'lxml') def clean_html(inf, outf): dirty = BS(inf, 'lxml', from_encoding='utf8') content, = dirty.find_all('div', attrs={'class': 'content clear-block'}) html.head.append(dirty.title) html.body.append(content) outf.write(html.encode('utf8')) if __name__ == '__main__': if len(sys.argv) == 2: with open(sys.argv[1], 'r') as inf: clean_html(inf, sys.stdout) elif len(sys.argv) == 1: inf, outf = sys.stdin, sys.stdout clean_html(inf, outf) else: sys.exit(1)
-- µ.