|
[ tidy-Bugs-1256372 ] numeric-entities always has same effect in config fil: msg#00031web.html-tidy.tracker
Bugs item #1256372, was opened at 2005-08-10 22:32 Message generated for change (Comment added) made by apopheniac 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: apopheniac (apopheniac) Date: 2005-08-12 00:22 Message: Logged In: YES user_id=1327332 Thank you for your comments and requests for clarification. The configuration file given in my original report was obtained from a tidy support page where it was given as an example. With the following configuration file tidy behaves as I expect -- HTML named entities are NOT changed to numeric entities. Whereas with the file originally submitted, they are changed in both cases when numeric- entities is set either Yes or No. -------begin configuration file------- numeric-entities: no -------end configuration file------- I've attached tidytest.htm, which includes a document declaration. The problem is not that tidy ignores the numeric-entities parameter, but that, with the original configuration file, it ALWAYS changes HTML named entities to numeric entities WHENEVER a numeric-entities line appears in the configuration file -- whether numeric-entities is set EITHER True OR False. Deleting the new-inline-tags and new-empty-tags lines from the original configuration file does produce the "correct" (expected) behavior. But again, with those lines intact, the numeric-entities line is NOT ignored; rather named HTML entities are ALWAYS changed to numeric entities. This differs from the case where the numeric-entities line is absent (in which case named HTML entities remain intact). I still maintain that a bug exists. If other settings (e.g. new-inline-tags, new-empty-tags) should cause the numeric-entities setting to be ignored, then named entities should remain untouched by tidy. Does this help? ---------------------------------------------------------------------- Comment By: Arnaud Desitter (arnaud02) Date: 2005-08-11 06:38 Message: Logged In: YES user_id=566665 Where is tidytest.htm ? ---------------------------------------------------------------------- Comment By: Björn Höhrmann (hoehrmann) Date: 2005-08-11 00: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> |
|---|---|---|
| Previous by Date: | [ tidy-Bugs-1256372 ] numeric-entities always has same effect in config file: 00031, SourceForge.net |
|---|---|
| Next by Date: | [ tidy-Bugs-1256372 ] numeric-entities always has same effect in config file: 00031, SourceForge.net |
| Previous by Thread: | [ tidy-Bugs-1256372 ] numeric-entities always has same effect in config filei: 00031, SourceForge.net |
| Next by Thread: | [ tidy-Bugs-1256372 ] numeric-entities always has same effect in config file: 00031, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |