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
     1.1 --- a/src/c2html.c	Thu Nov 10 18:27:16 2016 +0100
     1.2 +++ b/src/c2html.c	Thu Nov 10 18:44:48 2016 +0100
     1.3 @@ -68,8 +68,8 @@
     1.4          
     1.5          /* write line number */
     1.6          if (showlineno) {
     1.7 -            ucx_bprintf(line, "<span class=\"c2html-lineno\">"
     1.8 -                    "<a name=\"l%d\" href=\"#l%d\">%*d </a></span> ",
     1.9 +            ucx_bprintf(line, "<a class=\"c2html-lineno\" name=\"l%d\" "
    1.10 +                    "href=\"#l%d\">%*d </a>",
    1.11                      lineno, lineno, lnw, lineno);
    1.12          }
    1.13          
     2.1 --- a/test/header.html	Thu Nov 10 18:27:16 2016 +0100
     2.2 +++ b/test/header.html	Thu Nov 10 18:44:48 2016 +0100
     2.3 @@ -3,14 +3,13 @@
     2.4    <head>
     2.5      <title>c2html</title>
     2.6      <style type="text/css">
     2.7 -      span.c2html-lineno {
     2.8 +      a.c2html-lineno {
     2.9          /* as long as user-select isn't widely spread, we throw the bomb */
    2.10          -webkit-user-select: none;
    2.11          -moz-user-select: none;
    2.12          -ms-user-select: none;
    2.13          user-select: none;
    2.14 -      }
    2.15 -      span.c2html-lineno a {
    2.16 +        display: inline-block;
    2.17          font-style: italic;
    2.18          text-decoration: none;
    2.19          color: grey;
     3.1 --- a/test/jheader.html	Thu Nov 10 18:27:16 2016 +0100
     3.2 +++ b/test/jheader.html	Thu Nov 10 18:44:48 2016 +0100
     3.3 @@ -3,7 +3,13 @@
     3.4    <head>
     3.5      <title>c2html</title>
     3.6      <style type="text/css">
     3.7 -      span.c2html-lineno a {
     3.8 +      a.c2html-lineno {
     3.9 +        /* as long as user-select isn't widely spread, we throw the bomb */
    3.10 +        -webkit-user-select: none;
    3.11 +        -moz-user-select: none;
    3.12 +        -ms-user-select: none;
    3.13 +        user-select: none;
    3.14 +        display: inline-block;
    3.15          font-style: italic;
    3.16          text-decoration: none;
    3.17          color: grey;

mercurial