jmzambon / libreoffice-code-highlighter

Code snippet highlighter for LibreOffice.
https://extensions.libreoffice.org/en/extensions/show/5814
Other
79 stars 5 forks source link

Ruby: Standalone numbers will be deleted #45

Closed nerdcraft-muc closed 1 month ago

nerdcraft-muc commented 1 month ago

If a number (without any additional code) stands alone in a line, it will be deleted by the code highlighter. At least for Ruby.

jmzambon commented 1 month ago

Hi,

Thank for reporting. Could you provide a sample code? By the way, I don"t know Ruby and I need to understand how numbers work when standing alone in a line: could you give me any tip on that? Probably that number is seen as part of a non-code line numbering.

nerdcraft-muc commented 1 month ago

Hi,

here is a simple example:


def meth 5 end

puts meth


after code highlighting, the "5" ist gone!

Best regards

Eric.

-- Prof. Dr.rer.nat. Eric-Roger Brücklmeier

Erich-Kästner-Straße 21 80796 München Tel.: +49 89 55065971

jmzambon commented 1 month ago

Thanks again, this was a weird issue. A new version is available here: https://github.com/jmzambon/libreoffice-code-highlighter/raw/refs/heads/master/codehighlighter2.oxt.

nerdcraft-muc commented 1 month ago

Oh, Thank you very much!

Eric.

Prof. Dr.rer.nat. Eric-Roger Brücklmeier

Erich-Kästner-Straße 21 80796 München Tel.: +49 89 55065971

nerdcraft-muc commented 1 week ago

Hi,

there is still some issue.

in

5.times {puts _1}

the "5" disappears after formatting.

Best regards!

Eric.

Am 21.10.2024 um 18:02 schrieb jmzambon:

Closed #45 https://github.com/jmzambon/libreoffice-code-highlighter/ issues/45 as completed.

— Reply to this email directly, view it on GitHub https://github.com/ jmzambon/libreoffice-code-highlighter/issues/45#event-14767556523, or unsubscribe https://github.com/notifications/unsubscribe-auth/ AW4F4BBCBWCKKOTRKVWAHLTZ4UQS7AVCNFSM6AAAAABQIOIP7KVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJUG43DONJVGY2TEMY. You are receiving this because you authored the thread.Message ID: <jmzambon/libreoffice-code-highlighter/issue/45/ @.***>

-- Prof. Dr.rer.nat. Eric-Roger Brücklmeier

Erich-Kästner-Straße 21 80796 München Tel.: +49 89 55065971