Nice macro! I noticed that it generates a lot of empty class tags and class tags with extra trailing spaces though. If you dump the class string into a variable and then check if its there before adding the classes, you can eliminate the empty tags (and use the normalise-space function to kill the trailing spaces). Here's the code I used:
Empty class tags
Hi Tim,
Nice macro! I noticed that it generates a lot of empty class tags and class tags with extra trailing spaces though. If you dump the class string into a variable and then check if its there before adding the classes, you can eliminate the empty tags (and use the normalise-space function to kill the trailing spaces). Here's the code I used:
It doesn't seem to impact the performance from the tests I've run, and you get cleaner html output.
Hi Tim,
Thanks for the code, this was definately on my list of things to tidy up. I'll have a look at implementing your approach in the next release.
Tim
Tim,
Can you go into a little more detail what you are doing here? I would like to implement this to what I am currently working on. Thanks.
is working on a reply...