Tidy not quite processing XML as I would like
Hi,
I'm having problems getting Tidy to format output as I would like. The main problem seems to be how it's handling inline tags. It's putting them on their own line and not getting the subsequent spacing quite right.
[code]
...
<description>
<p>Sessions have a concept of a 'currently logged in user', reflected by
<linkto type="jsapi">zimki_session.prototype.user</linkto>,
<linkto type="jsapi">zimki_session.prototype.user_id</linkto>and
<linkto type="jsapi">zimki_session.prototype.username</linkto>. This method checks that the user with the username specified has the
password specified, throwing an exception if not, and sets the currently logged in user appropriately.</p>
...
[/code]
Note the linkto tags are put on their own lines. Also, notice that the space between the tag and the 'and' has disappeared. I wouldn;t mind the inline tags being on their own line so much if spaces were handled correctly.
Anyone got any ideas how to fix this please?
My config file looks like this:
[code]
# General
tidy-mark: no
char-encoding: utf8
logical-emphasis: yes
enclose-text: yes
enclose-block-text: yes
newline: LF
# tags
new-pre-tags: codeblock
new-inline-tags: explanation, string, code, val, linkto
new-blocklevel-tags: api, returns, params, param, description, example, exceptions, exception, p
# Layout
markup: yes
wrap: 140
tab-size: 2
indent: auto
indent-spaces: 2
indent-attributes: yes
vertical-space: no
# XML directives
input-xml: yes
output-xml: yes
add-xml-space: yes
[/code]