- From: Xavier Decoret <Xavier.Decoret@imag.fr>
- Date: Fri, 09 Nov 2001 09:03:17 +0100
- To: html-tidy@w3.org
I use tidy to clean the following code:
-----------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>A page</title>
</head>
<body lang="en">
<h1>Title</h1>
<p>The goal of the process is toHere is a sentence with an
<em>emphasized</em> word inside. This should be kept compact.</p>
</body>
</html>
-----------------------------------------------------------------------
Here is the result of
>tidy -config tidy.conf foo.html
-----------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>A page</title>
</head>
<body lang="en">
<h1>Title</h1>
<p>The goal of the process is toHere is a sentence with an
<em>emphasized</em>
word inside. This shiuld be kept compact.</p>
</body>
</html>
-----------------------------------------------------------------------
My problem is that I would like tidy to keep the <em>/<em> tag inline in
the <p> line. I found the newline and empty line very unpleasant when
reading the paragraph.
Unfortunately, I cannot find ant adequat configuration.
Here is my configuration file:wrap: 72
wrap-attributes: no
wrap-script-literals: no
wrap-asp: no
wrap-jste: no
wrap-php: no
literal-attributes: yes
tab-size: 2
indent: no
indent-spaces: 2
indent-attributes: no
input-xml: yes
output-xhtml: yes
char-encoding: utf8
uppercase-attributes: no
fix-bad-comments: yes
write-back: no
show-warnings: yes
error-file: tidy.log
quiet: no
gnu-emacs: yes
--
+--------------+--------------------------------------------+
|Xavier DECORET| iMAGIS, Laboratoire GRAVIR/IMAG |
| | INRIA Rhone-Alpes, |
| | 655 Av de l'Europe, 38330 Montbonnot |
|Doctorant | France. Tel: +33 4 76 61 54 58 |
+--------------+------------+------------------------------+
| http://www-imagis.imag.fr/~Xavier.Decoret |
+---------------------------+------------------------------+
Received on Friday, 9 November 2001 03:03:20 UTC