Menu

#183 HelpBox uses empty <p>, causes HTML lint violation

v1.0 (example)
open
nobody
None
5
2021-06-07
2020-09-16
No

In many files there is code like this:

~~~
addpub.py: print '

'
addpub.py- print 'Help on adding new publication records: '
addpub.py- print 'Help:Screen:AddPublication

' % (WIKILOC)
addpub.py- print '

'
~~~~

The

at the end is an empty element and causes an HTML lint violation. It should be removed. Instead in the css the padding-bottom should be inceased to 15px (like for top) for div#HelpBox

Probably the same for WarningBox and ErrorBox.

Also the space before is superfluos.

Discussion

  • Dirk Stoecker

    Dirk Stoecker - 2020-09-16

    Try again with proper formatting?

    addpub.py:        print '<div id="HelpBox">'
    addpub.py-        print '<b>Help on adding new publication records: </b>'
    addpub.py-        print '<a href="http://%s/index.php/Help:Screen:AddPublication">Help:Screen:AddPublication</a><p>' % (WIKILOC)
    edit/addpub.py-        print '</div>'
    

    The

    <p>
    

    is empty and should be stripped.

     
  • Ahasuerus

    Ahasuerus - 2021-06-07

    Ticket moved from /p/isfdb/bugs/758/

     

Anonymous
Anonymous

Add attachments
Cancel