Giter VIP home page Giter VIP logo

Comments (8)

sideshowbarker avatar sideshowbarker commented on August 26, 2024

Is it putting out an empty <i></i> element?

If so, then to avoid that getting dropped, you need to run Tidy with the --drop-empty-elements option set to no, like this: tidy --drop-empty-elements no.

I couldn't see your example because markup gets stripped out of comments you post here, unless you put backticks around it, like this <i></i> (or whatever your example was).

from tidy-html5.

sideshowbarker avatar sideshowbarker commented on August 26, 2024

It's been a month but have not heard back from ashkanr yet, so closing this for now.

ashkanr, if you have further questions or comment, please feel free to re-open this.

from tidy-html5.

ashkrosh avatar ashkrosh commented on August 26, 2024

sorry for not posting back here. Your suggested --drop-empty-elements=no did the job. Now it doesn't remove empty tags.
Thanks a lot :)

from tidy-html5.

sideshowbarker avatar sideshowbarker commented on August 26, 2024

Cool -- glad to hear it's working for you as expected.

from tidy-html5.

mikekay01 avatar mikekay01 commented on August 26, 2024

I know this is closed, but I'm having the same problem. Can you explain exactly how I run Tidy with the option mentioned above? I've tried putting it in the configuration file and that doesn't work. I suspect I'm doing it wrong. Any guidance would be greatly appreciated...

from tidy-html5.

craigbarnes avatar craigbarnes commented on August 26, 2024

On the command-line it's:

tidy --drop-empty-elements no

(not this).

In a configuration file it would be:

drop-empty-elements: no

But you may need to specify the config file to use with:

tidy -config /path/to/your/config

from tidy-html5.

mikekay01 avatar mikekay01 commented on August 26, 2024

Actually that brings up a good question. I'm not sure where the plugin installed to, and I'm trying to use the "Custom" config file inside the plugin. Not sure how to create a new one or where they're at. Any clues

from tidy-html5.

craigbarnes avatar craigbarnes commented on August 26, 2024

I'm not sure I understand what you mean by "plugin", but I'll try to help if you give a little more context.

from tidy-html5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.