Comments (8)
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.
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.
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.
Cool -- glad to hear it's working for you as expected.
from tidy-html5.
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.
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.
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.
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)
- tidy 5.8.0 reports version as 5.7.45 HOT 1
- Request.info
- Misleading warning for minlength attributes on input elements
- tidy-html5 Build failure on arm64-uwp
- "This document has errors" message gets "stuck" after hitting first error, when scanning multiple files
- nowrap and width attributes in <td> tag
- Stack-overflow on tidy-html5-5.8.0 HOT 2
- accessibility-check disables tidy-mark
- option "--indent-with-tabs yes" does NOT work as expected HOT 1
- can -i be performed without adding elements?
- Document --tidy-mark flag in tidy --help HOT 2
- Your website - Use HTML tidy perhaps? HOT 2
- embedded javascript is not being indented, nor is existing indentation preserved
- Display of options in help is not handling multibyte characters
- Always direct the user to the line where the crime occurred
- Warn about empty tags
- Say instead "`<` seen twice"
- 放送部ファイル
- مرحبا
- Hi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tidy-html5.