Lloydi
November 18, 2021, 9:59pm
1
I use KM to generate some custom HTML. To do this, I set/append HTML to a variable, then write the file. All working fine but if I ever try to edit an attribute value, the double quotes either side of the value change from " to β or β. This has the unfortunate effect of breaking the page output.
So, is there any way of preventing it from doing this?
tiffle
November 18, 2021, 10:04pm
2
Oh - this takes me back a while when I too asked this same question. The solution is in your system preferences as described in this thread
In a Set Variable to Text Action I've noticed some odd and quite unwanted behaviour as follows: I'm trying to set a variable to a regex pattern for use later in the macro I'm creating. The regex pattern is this:
span class="meta-header">((\d+) images)
I've noticed that when I type the second quote KM changes it to a different character, namely β as opposed to what I actually typed which is this - ". Which is really annoying as then the regex doesn't work as it should!
Here's a link to a videoβ¦
I hope that helps.
ccstone
November 19, 2021, 6:26am
3
Lloydi:
any way of preventing it
Hey Lloyd,
You're probably running into Apple trying to be helpful. See this in the Keyboard Maestro Editor.
-Chris
2 Likes
devoy
November 19, 2021, 11:43pm
4
EXCELLENT gang! I ran into this today and was copy/pasting from BBEdit to get around it. Love this forum and community.
(How come every time software tries to be "helpful" things get worse?)
3 Likes