removes span around line number

Thu, 10 Nov 2016 18:44:48 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 10 Nov 2016 18:44:48 +0100
changeset 60
9f25df78925e
parent 59
643a3ccecd61
child 61
47a5fc33590a
child 66
1b12cf799fee

removes span around line number

src/c2html.c file | annotate | diff | comparison | revisions
test/header.html file | annotate | diff | comparison | revisions
test/jheader.html file | annotate | diff | comparison | revisions
--- a/src/c2html.c	Thu Nov 10 18:27:16 2016 +0100
+++ b/src/c2html.c	Thu Nov 10 18:44:48 2016 +0100
@@ -68,8 +68,8 @@
         
         /* write line number */
         if (showlineno) {
-            ucx_bprintf(line, "<span class=\"c2html-lineno\">"
-                    "<a name=\"l%d\" href=\"#l%d\">%*d </a></span> ",
+            ucx_bprintf(line, "<a class=\"c2html-lineno\" name=\"l%d\" "
+                    "href=\"#l%d\">%*d </a>",
                     lineno, lineno, lnw, lineno);
         }
         
--- a/test/header.html	Thu Nov 10 18:27:16 2016 +0100
+++ b/test/header.html	Thu Nov 10 18:44:48 2016 +0100
@@ -3,14 +3,13 @@
   <head>
     <title>c2html</title>
     <style type="text/css">
-      span.c2html-lineno {
+      a.c2html-lineno {
         /* as long as user-select isn't widely spread, we throw the bomb */
         -webkit-user-select: none;
         -moz-user-select: none;
         -ms-user-select: none;
         user-select: none;
-      }
-      span.c2html-lineno a {
+        display: inline-block;
         font-style: italic;
         text-decoration: none;
         color: grey;
--- a/test/jheader.html	Thu Nov 10 18:27:16 2016 +0100
+++ b/test/jheader.html	Thu Nov 10 18:44:48 2016 +0100
@@ -3,7 +3,13 @@
   <head>
     <title>c2html</title>
     <style type="text/css">
-      span.c2html-lineno a {
+      a.c2html-lineno {
+        /* as long as user-select isn't widely spread, we throw the bomb */
+        -webkit-user-select: none;
+        -moz-user-select: none;
+        -ms-user-select: none;
+        user-select: none;
+        display: inline-block;
         font-style: italic;
         text-decoration: none;
         color: grey;

mercurial