buttons icon indicating copy to clipboard operation
buttons copied to clipboard

Calculation not working

Open mrpurplecloud opened this issue 3 years ago • 5 comments

Wanted a counter button so started testing with the example code:

```button
name Add Em Up
type calculate
action 2+2 ``` But nothing happened when clicking, nowhere to find the output

Win10, plugin version 0.4.15, Obsidian version 0.12.12

mrpurplecloud avatar Sep 06 '21 09:09 mrpurplecloud

Weird! Does anything show up in the dev console?

to open the dev console I believe it is Ctrl+Shift+I on Windows or it should be under the View menu.

Let me know if anything shows up and I'll try to recreate the problem.

shabegom avatar Sep 08 '21 01:09 shabegom

@shabegom nothing show in the console, no errors, no warnings

Expected result: write a 4 at the bottom of the note

calpa avatar Sep 19 '21 01:09 calpa

I wonder if it is a platform specific issue. I don't have a Windows computer to test with.

shabegom avatar Sep 22 '21 18:09 shabegom

Got the same bug on my MacOS too. No logs, no warnings.

MSzturc avatar Oct 27 '21 21:10 MSzturc

I believe this is an issue with whitespace not being trimmed. Will push 0.2.16 and check if it is fixed.

shabegom avatar Nov 11 '21 16:11 shabegom