Re: Tidy and Custom Tags

 There is one problem tho' If there is no config file, OR a  particular user control is NOT listed, it will list a warning AND delete the tag completely from the file....there are a couple of other  inconsistencies which also delete the controls, but I  haven't nailed down a repeatable scenario for -- I'll  continue down that trail tomorrow.
 
One question: 
Is there a particular way to list multiple user controls in  the new empty tags section? (I've been separating them by a comma, and then a space, just like in a sentence) - also, is there a limit to the number of new tags you can add here? I'm finding I wasn't too consistent in my naming conventions and have a lot of different prefixes defined for the same tags in different pages (one page might be xprs - then another page might be aspx - but they're all header, footer, or sidebar, for example). Therefore, I'm trying to put all  the possibilities into the config file, in the new empty tag section.

David Wier
  ----- Original Message ----- 
  From: Charles Reitzel 
  To: David Wier 
  Sent: Friday, November 29, 2002 6:44 PM
  Subject: Re: Tidy and Custom Tags


  Works for me.  I get the warnings, but the tags are not dropped anymore.

  tidy -config empty.tidy empty.html > empty.out.html

  take it easy,
  Charlie


  At 06:26 PM 11/29/2002 -0600, you wrote:
  >No problem - however, as the earlier message stated, the warnings were that
  >the tags weren't recognized, and it totally removed them from the code.
  >Config.txt:
  >new-empty-tags:
  >aspnet101:side,aspnet101:top,aspx:netcode,aspnet101:footer,aspnet101:footer,
  >xpress:rotator,xprs:books,aspx:header,aspx:sidebar,xprs:footer,xprs:books
  >
  >Command:
  >C:\Tidy-Beautify\tidy.exe -config config.txt -f
  >C:\Tidy-Beautify\temp\errs.txt -wrap 0 --force-output
  >yes -indent --indent-spaces 3 -m Testaspnetcode.aspx
  >Tags are:
  ><aspx:sidebar runat="server"/>
  ><aspx:header runat="server"/>
  ><xprs:books id="books" runat="server"/>
  ><xprs:footer runat="server"/>
  >
  >However, it now successfully indents much more easily and very nicely.
  >
  >Actual File is attached, just in case it will help
  >
  >Thanks for all the help!
  >David Wier
  >
  >----- Original Message -----
  >From: "Charles Reitzel" <creitzel@rcn.com>
  >To: "David Wier" <dwier@augustwind.com>
  >Sent: Friday, November 29, 2002 6:07 PM
  >Subject: Re: Tidy and Custom Tags
  >
  >
  > > Sorry, known bug.  Be sure to set --force-output yes if you use -m.
  > >
  > > At 04:14 PM 11/29/2002 -0600, David Wier wrote:
  > > >I've got bad news then - all I did was to replace my old Tidy.exe with
  >the
  > > >new one I downloaded (11/29)
  > > >Several files in a row - twice on one ASPX file, several asp files - it
  > > >totally wiped them clean of text. It was intermittent though, but it
  >seemed
  > > >that if I gave it no indent, it worked, but if I gave it a number of
  >indent
  > > >spaces, it wiped them cliean.
  > > >
  > > >David Wier
  > > >
  > > >----- Original Message -----
  > > >From: "Charles Reitzel" <creitzel@rcn.com>
  > > >To: "David Wier" <dwier@augustwind.com>
  > > >Cc: <html-tidy@w3.org>
  > > >Sent: Friday, November 29, 2002 2:19 PM
  > > >Subject: Re: Tidy and Custom Tags
  > > >
  > > >
  > > > > At 12:32 PM 11/29/2002 -0600, David Wier wrote:
  > > > > >So are you saying that there's a new release of Tidy (exe) that does
  >fix
  > > > > >the colon (:) problems with the empty tags?
  > > > > >David Wier
  > > > >
  > > > > Yes.  Terry has been busy lately getting the overnight builds to use
  > > > > TidyLib.  I just updated the command line executable on the Tidy
  >homepage
  > > > > to the new, TidyLib-based executable.
  > > > >
  > >
  > >
  > >

Received on Saturday, 30 November 2002 17:54:24 UTC