Hi,
The beginning of the produced HTML is static, thus you could put it in a triple quoted string too:
`html = """
<style type="text/css">
table.pixeltable
{
border-spacing: 0;
..."""
outfile.write(html)`
I'd have a question too: what is it good for? It's interesting to convert an image to an HTML table but do you see any cases when it's encouraged against a JPG file? I just wonder.
Laszlo
Hi,
The beginning of the produced HTML is static, thus you could put it in a triple quoted string too:
`html = """
<style type="text/css"> table.pixeltable { border-spacing: 0; ...""" outfile.write(html)`I'd have a question too: what is it good for? It's interesting to convert an image to an HTML table but do you see any cases when it's encouraged against a JPG file? I just wonder.
Laszlo