logo       

[ tidy-Bugs-1256372 ] numeric-entities always has same effect in config fil: msg#00030

web.html-tidy.tracker

Subject: [ tidy-Bugs-1256372 ] numeric-entities always has same effect in config file

Bugs item #1256372, was opened at 2005-08-11 03:32
Message generated for change (Comment added) made by arnaud02
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1256372&group_id=27659

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HTML/XML/XHTML Parser
Group: Current - all platforms
Status: Open
Resolution: Invalid
Priority: 5
Submitted By: apopheniac (apopheniac)
Assigned to: Björn Höhrmann (hoehrmann)
Summary: numeric-entities always has same effect in config file

Initial Comment:
1) WithHTML Tidy for Mac OS X released on 1st December 2004
and using a configuration file (e.g. config.txt - see file contents
below), like this
tidy -config config.txt -o tidytest2.htm tidytest.htm
tidy always converts HTML entities like   and – in
the input file to numeric equivalents (  and – for the
examples given), whether I set the numeric-entities variable to yes
or no, like this
numeric-entities: yes
or like this:
numeric-entities: no

2) If I comment out the numeric-entities line, the HTML entities
are left as is (i.e., are not converted to numeric entities).

3) Similarly, with a command like
tidy -o tidytest2.htm tidytest.htm
the HTML entities are left as is (i.e., are not converted to numeric
entities).

4) I would expect that "numeric-entities: no" would leave HTML
entities untouched -- i.e., that tidy would behave the same as it
only does now WITHOUT any numeric-entities line in the
configuration file.

Here is the configuration file I am using (notice last the few
comments):
-------begin file-------
indent: auto
indent-spaces: 2
//wrap: 72
wrap: 0 //no wrap
//clean: yes
enclose-text: yes
//error-file: HTMLTidy_errs.txt
markup: yes
output-xml: no
input-xml: no
show-warnings: yes
numeric-entities: yes
//must comment out or delete above line to disable numeric entity
substitution -
//whether set "yes" or "no," always produces numeric entities
quote-marks: yes
quote-nbsp: yes
quote-ampersand: no
break-before-br: no
tidy-mark: no
uppercase-tags: no
uppercase-attributes: no
char-encoding: latin1 //error occurs even when this line is
commented out
new-inline-tags: cfif, cfelse, math, mroot,
mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
munder, mover, mmultiscripts, msup, msub, mtext,
mprescripts, mtable, mtr, mtd, mth
new-blocklevel-tags: cfoutput, cfquery
new-empty-tags: cfelse
-------end file-------

----------------------------------------------------------------------

>Comment By: Arnaud Desitter (arnaud02)
Date: 2005-08-11 11:38

Message:
Logged In: YES
user_id=566665

Where is tidytest.htm ?


----------------------------------------------------------------------

Comment By: Björn Höhrmann (hoehrmann)
Date: 2005-08-11 05:35

Message:
Logged In: YES
user_id=188003

Yes, Tidy won't generate entities if it does not generate a
document type declaration aswell. Since you seem to use
proprietary elements the option is ignored.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1256372&group_id=27659


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise