Hello Stephan,

Here is a short patch that removes the use of the <nobr> element which
has never been part of the standard. I have found that it is used solely
in stat.c to display the URL stats.
The fix is to replace <nobr> by <span class="nobr"> and add span.nobr {
white-space: nowrap; } to the default CSS in style.c. The diff is
against the master branch.

The patch for data-* attributes should follow...
Samuel

Le 14/02/2014 16:49, Stephan Beal a écrit :
> On Fri, Feb 14, 2014 at 4:43 PM, Samuel Debionne
> <samuel.debio...@ujf-grenoble.fr
> <mailto:samuel.debio...@ujf-grenoble.fr>> wrote:
> 
>     Yep adding data-* is not that straightforward… If you want I can try
>     to create a patch with that functionality alone (a subset of the
>     diff I send you earlier).
> 
> 
> Yes, please.
>  
> 
>     Something I noticed while hacking the wikiformat code is the use of
>     <div id='foo'></div id=‘foo'> which is not valid HTML AFAIK. Closing
>     tags should not have attributes right ?
> 
> 
> Correct. i'm not familiar enough with the parse to know why it's doing
> that off-hand, but will take a look (no promises!).
--- C:/Developpements/fossil/master/src/style.c Mon Feb 17 16:21:28 2014
+++ C:/Developpements/fossil/fossil-lthe/src/style.c    Mon Feb 17 16:24:20 2014
@@ -1191,6 +1190,10 @@
     "odd table row color",
     @ /* Use default */
   },
+  { "span.nobr",
+    "NOBR tags deprecated, use <span class='nobr'>",
+    @ white-space: nowrap;
+  },
   { "#canvas", "timeline graph node colors",
     @ color: black;
     @ background-color: white;
--- C:/Developpements/fossil/master/src/stat.c  Mon Feb 17 16:21:28 2014
+++ C:/Developpements/fossil/fossil-lthe/src/stat.c     Wed Jan 29 15:16:12 2014
@@ -18,7 +18,6 @@
 ** This file contains code to implement the stat web page
 **
 */
-#include "VERSION.h"
 #include "config.h"
 #include <string.h>
 #include "stat.h"
@@ -262,7 +261,7 @@
   cnt = 0;
   while( db_step(&q)==SQLITE_ROW ){
     @ <tr><td width='100%%'>%h(db_column_text(&q,0))</td>
-    @ <td><nobr>%h(db_column_text(&q,1))</nobr></td></tr>
+    @ <td><span class='nobr'>%h(db_column_text(&q,1))</span></td></tr>
     cnt++;
   }
   db_finalize(&q);
@@ -277,7 +276,7 @@
   cnt = 0;
   while( db_step(&q)==SQLITE_ROW ){
     @ <tr><td width='100%%'>%h(db_column_text(&q,0))</td>
-    @ <td><nobr>%h(db_column_text(&q,1))</nobr></td></tr>
+    @ <td><span class='nobr'>%h(db_column_text(&q,1))</span></td></tr>
     cnt++;
   }
   db_finalize(&q);
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to