https://bugs.documentfoundation.org/show_bug.cgi?id=151076

--- Comment #2 from Rafael Lima <[email protected]> ---
TBH I really don't know why this macro is even accessible via Toos - Macros -
Run Macro, because it requires a positional "text" argument to work. See:

https://opengrok.libreoffice.org/xref/core/scripting/examples/python/InsertText.py

So it seems the "InsertText" function is meant to be called by other scripts
only and not as a standalone script.

For instance, create a Writer document and open an APSO Python shell. Now type:

from InsertText import InsertText
InsertText("Hello")

The code above will insert "Hello" where your cursor is located.

The only weird thing is that the InsertText macro should not be reachable via
the Run Macro menu. The script isn't even exported using g_exportedScripts, so
I don't see why it is listed to the user.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to