munkiadmin icon indicating copy to clipboard operation
munkiadmin copied to clipboard

Smart Quotes in Package Description

Open diwanicki opened this issue 8 years ago • 2 comments

This may be a Sierra 10.12.6 regression, but editing the Description field for a package and using quotes results in "smart quotes" being applied. This is normally not an issue, but will cause the pkginfo to generate an error in makecatalogs if the quotes are used inside a web link ex:

... < a href="apple.com/support"> apple.com/support< /a > ... Encountered unexpected character on line ## while looking for close tag in file ****

Opening the pkginfo in an alternate text editor (like TextWrangler) shows the "smart quotes" instead of the expected straight quotes. The brackets are properly converted to & lt; and & gt;

MA ver 1.5.0

diwanicki avatar Aug 15 '17 18:08 diwanicki

MunkiAdmin tries hard to disable smart quotes but it's a constant struggle if they're not globally disabled in System Preferences:

screen shot 2017-08-16 at 10 30 16

hjuutilainen avatar Aug 16 '17 07:08 hjuutilainen

Is it worth a note in the readme? I don't know if that setting is something easy checked for programmatically, but could an alert be written to recommend the user uncheck that preference?

I'm going to uncheck that preference on my work machine tomorrow

diwanicki avatar Aug 17 '17 00:08 diwanicki