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

            Bug ID: 159522
           Summary: Extension in Basic macro script: some characters
                    inside the script would cause problem because script
                    is inside an XML file
           Product: LibreOffice
           Version: 7.6.4.1 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 192344
  --> https://bugs.documentfoundation.org/attachment.cgi?id=192344&action=edit
Two errors while clicking on the extension button on the toolbar.

I'm going to refer to a repository that is mentioned in the LibreOffice
documentation and help pages. Consider this code inside the LibreOffice Calc
extension:

https://github.com/luane-aquino/helloworld-libreoffice-extension/blob/a3f4927b173f41153ddc054ec6ec3a5712b9bafc/HelloWorldLibrary/Module1.xba#L6

The code is in StarBasic macro programming language. It's inside an XML file
named `Module1.xba`.

Any use of some character combinations would cause errors while running the
extension. Some troublemaker character sequences are `<>`, `<=`, and `<=>`. For
example, this code line would cause extension launch errors:

```
Print " <=> "
```

Or this one:

```
If 1 <> 2 Then
    Print "Reached here?"
End If
```

The attachment shows two errors thrown while clicking on the extension button
on the toolbar.

Is it a bug? There shouldn't be some ways of including the StarBasic macro
script inside the XML without worrying about some text characters interfering
with the XML format and causing launch errors. Maybe I'm missing something.

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

Reply via email to