[diffoscope] 01/01: Remove inline styles from col elements

Emanuel Bronshtein e3amn2l-guest at moszumanska.debian.org
Thu Dec 22 19:28:34 CET 2016


This is an automated email from the git hooks/post-receive script.

e3amn2l-guest pushed a commit to branch master
in repository diffoscope.

commit 4879cd7073b027078b35f66ed13b4a4178e16261
Author: Emanuel Bronshtein <e3amn2l at gmx.com>
Date:   Thu Dec 22 20:28:30 2016 +0200

    Remove inline styles from col elements
---
 diffoscope/presenters/html.py | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/diffoscope/presenters/html.py b/diffoscope/presenters/html.py
index 070f6f1..29f6895 100644
--- a/diffoscope/presenters/html.py
+++ b/diffoscope/presenters/html.py
@@ -168,6 +168,12 @@ HEADER = """<!DOCTYPE html>
     .diffoscope .diffcontrol-double {
       line-height: 200%%;
     }
+    .diffoscope .colines {
+      width: 3em;
+    }
+    .diffoscope .coldiff {
+      width: 99%%;
+    }
   </style>
   %(css_link)s
 </head>
@@ -229,8 +235,8 @@ $(function() {
 """
 
 UD_TABLE_HEADER = u"""<table class="diff">
-<colgroup><col style="width: 3em;"/><col style="99%"/>
-<col style="width: 3em;"/><col style="99%"/></colgroup>
+<colgroup><col class="colines"/><col class="coldiff"/>
+<col class="colines"/><col class="coldiff"/></colgroup>
 """
 
 UD_TABLE_FOOTER = u"""<tr class="ondemand"><td colspan="4">

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list