On 08/03/2011, at 02:20 , Kim Mosley wrote:

> When I do Tidy the – is replaced by an en dash, which sometimes 
> displays correctly and sometimes doesn't. I want to keep – as it is. 
> How do I do that with Tidy?

Interestingly enough, when I run your sample through Tidy, it replaces the 
– with a hyphen-minus (ie: &#002D;).

This appears to be because the "remove bogus markup" option of the "Tidy" 
command sends the "-bare" option to the html-tidy program. This option, 
according to the html-tidy documentation, "strips out smart quotes and em 
dashes, etc."  If so, I would suggest to Bare Bones that the "remove bogus 
markup" option be renamed to "Use braindead punctuation" ('cos it's removing 
"smart" quotes).

So assuming the problem you describe is in fact the en-dash being replaced with 
a hyphen, your two options are:
 - Use the format command (Markup -> Utilities -> Format…) (to avoid Tidy's 
obscure vagaries)
 - Un-tick the "remove bogus markup" option when running the "Tidy" command

Hope this helps!
Alex

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to