gfsd-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gfsd] HTML Tweaks


From: Aaron S. Hawley
Subject: [gfsd] HTML Tweaks
Date: Fri, 2 Apr 2004 01:07:14 -0500 (EST)

I committed some minor HTml changes last night to the FSF directory.

Just a heads-up from a luser.

Have a good weekend.
/a

$ cvs -z3 ci -m'HTML Tweaks for text browsers' src/display-entry.py \
 ChangeLog

Checking in src/display-entry.py;
/cvsroot/gnulist/gnulist/src/display-entry.py,v  <--  display-entry.py
new revision: 1.44; previous revision: 1.43
done
Checking in ChangeLog;
/cvsroot/gnulist/gnulist/ChangeLog,v  <--  ChangeLog
new revision: 1.67; previous revision: 1.66
done
FATAL: SMTP connection failed at log_accum.pl line 314.

Index: src/display-entry.py
===================================================================
RCS file: /cvsroot/gnulist/gnulist/src/display-entry.py,v
retrieving revision 1.43
diff -u -r1.43 display-entry.py
--- src/display-entry.py        25 Mar 2004 23:48:34 -0000      1.43
+++ src/display-entry.py        2 Apr 2004 05:54:44 -0000
@@ -180,7 +180,7 @@
         lname = query[4]

     if query:
-        req.write ('<tr><td>' + make_fsdentry_link (id, c, query[0]) + '
- [' + str(lname) + '] - ' + str(query[2]) + '<br>' + str(query[1]) +
'</td></tr><tr><td></td></tr>')
+        req.write ('<p>' + make_fsdentry_link (id, c, query[0]) + ' - ['
+ str(lname) + '] - ' + str(query[2]) + '<br>\n' + str(query[1]) +
'</p>\n')

 def display_entry (req, c, id, from_category = None):

@@ -493,10 +493,10 @@
         req.write ('<strong>Ten most recently updated entries in the
directory . . .</strong><br><br>')

         c.execute ('select id from program order by updated desc, name
limit 10')
-        req.write ('<table cellspacing="5">')
+        req.write ('<table cellspacing="5">\n<tr><td>\n')
         for x in c.fetchall ():
             short_description (req, c, x[0])
-        req.write ('</table>')
+        req.write ('</td></tr>\n</table>\n')
         end_html(req)
     else:
         tree = []
@@ -518,11 +518,13 @@
         c.execute ('select id from program,category_mapping\
         where category_id=%s and program_id=id order by name',
(category,))

+        req.write ('<tr><td>\n')
         for x in c.fetchall ():
            short_description (req, c, x[0], category)
+        req.write ('</td></tr>\n')
         req.write ('</table>')

-        end_html(req, 'Copyright &copy; 2000, 2001, 2002 Free Software
Foundation, Inc.</p><p>Permission is granted to copy, distribute, and/or
modify this document under the terms of the GNU Free Documentation
License, Version 1.1 or any later version published by the Free Software
Foundation; with no Invariant Sections, with no Front-Cover Texts, and
with no Back-Cover Texts.  A copy of this license is included in the file
<a href="COPYING.DOC">COPYING.DOC</a>.</p>')
+        end_html(req, '<p>Copyright &copy; 2000, 2001, 2002 Free Software
Foundation, Inc.</p>\n<p>Permission is granted to copy, distribute, and/or
modify this document under the terms of the GNU Free Documentation
License, Version 1.1 or any later version published by the Free Software
Foundation; with no Invariant Sections, with no Front-Cover Texts, and
with no Back-Cover Texts.  A copy of this license is included in the file
<a href="COPYING.DOC">COPYING.DOC</a>.</p>\n')

 #               ' freely redistributable programs cataloged')

Index: ChangeLog
===================================================================
RCS file: /cvsroot/gnulist/gnulist/ChangeLog,v
retrieving revision 1.66
diff -u -r1.66 ChangeLog
--- ChangeLog   15 Jan 2004 23:07:44 -0000      1.66
+++ ChangeLog   2 Apr 2004 05:54:44 -0000
@@ -1,3 +1,10 @@
+2004-04-02  Aaron Hawley <address@hidden>
+
+       * src/display-entry.py: HTML tweak to the "short description"
+       (found in root node and in category nodes).  Should benefit text
+       browsers: went from table rows to paragraph elements.  HTML for
+       Copying notice also fixed by addition of paragraph tag.
+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]