Tidy putting spurious "/" into tags

Dear Folks,

One of my users has reported a problem when tidying his XHTML on the Mac
platform. I have since reproduced his problem with the Windows versions of
Tidy, so this is a non-platform specific problem that I look to your advice
on.

I am able to reproduce the problem with both the 30 Apr 00 and 08 Jul 00
versions.

Here is his original comment :

>I'm evaluating BBTidy 1.0b6 on my Macintosh G3, OS 8.6. BBTidy for
>BBedit consistently inserts " /" in a number of tags when tidying up
>PageSpinner 2.1 for PPC files. I've attached my original file, the
>output file, and my config file. I hope you can help me figure this
>out, as I think your program is great and would like to use it on an
>ongoing basis.

Here is his config file :

indent: auto
indent-spaces: 2
wrap: 72
markup: yes
clean: no
output-xml: no
input-xml: no
show-warnings: yes
numeric-entities: yes
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
uppercase-tags: yes
uppercase-attributes: yes
smart-indent: no
output-xhtml: yes
char-encoding: latin1
new-inline-tags: mind-it-ignore, /mind-it-ignore
tidy-mark: no
logical-emphasis: yes
drop-empty-paras: no
alt-text: image

Here is a small portion of his input HTML ("index.shtml") that demonstrates
the problem. The entire file can be provided on request :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Unnatural FAQs: Maharishi&#39;s Natural Law Party and John
    Hagelin</title>
    <meta name="description"
    content="An independent and critical resource on The Natural Law Party,
particularly John Hagelin&#39;s party of the USA, by a former teacher of
the Maharishi&#39;s Transcendental Meditation program. Includes insider
secrets, personal stories, scandals, allegations of child abuse, news
archive, and more.">
    <meta http-equiv="Keywords"
    content="Natural Law Party, NLP, John Hagelin, politics, natural law,
TM, ayurveda, Transcendental, Meditation, Maharishi, Mahesh, Yogi, Ayur,
Veda, Alternative Medicine, Psychology, Politics, Cultic Studies, cult,
thought reform, mind control, mantra, sutra">
    <meta http-equiv="content-type"
    content="text/html; charset=iso-8859-1">
  </head>

  <body background="GIF/nbkgr.GIF" alink="#000000" bgcolor="#FFFFFF"
  text="#000066" link="#CC0000" vlink="#660000" topmargin="0"
  leftmargin="0">

And is is the tidied output of the above :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Unnatural FAQs: Maharishi&#39;s Natural Law Party and John
    Hagelin</title>
    <meta name="description"
    content="An independent and critical resource on The Natural Law Party,
particularly John Hagelin&#39;s party of the USA, by a former teacher of
the Maharishi&#39;s Transcendental Meditation program. Includes insider
secrets, personal stories, scandals, allegations of child abuse, news
archive, and more." />
    <meta http-equiv="Keywords"
    content="Natural Law Party, NLP, John Hagelin, politics, natural law,
TM, ayurveda, Transcendental, Meditation, Maharishi, Mahesh, Yogi, Ayur,
Veda, Alternative Medicine, Psychology, Politics, Cultic Studies, cult,
thought reform, mind control, mantra, sutra" />
    <meta http-equiv="content-type"
    content="text/html; charset=iso-8859-1" />
  </head>

  <body background="GIF/nbkgr.GIF" alink="#000000" bgcolor="#FFFFFF"
  text="#000066" link="#CC0000" vlink="#660000" topmargin="0"
  leftmargin="0">
  </body>
</html>


See the trailing "/>" above.

Regards, Terry

Received on Tuesday, 11 July 2000 04:19:08 UTC