W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2007

Tidy not quite processing XML as I would like

From: codefire <tbedford_csl@hotmail.com>
Date: Mon, 23 Jul 2007 04:15:50 -0700 (PDT)
Message-ID: <11741797.post@talk.nabble.com>
To: html-tidy@w3.org

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]
-- 
View this message in context: http://www.nabble.com/Tidy-not-quite-processing-XML-as-I-would-like-tf4129047.html#a11741797
Sent from the w3.org - html-tidy mailing list archive at Nabble.com.
Received on Monday, 23 July 2007 23:33:32 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:10:00 UTC