Microdown icon indicating copy to clipboard operation
Microdown copied to clipboard

MicTextPresenter exampleSample raises an error

Open Ducasse opened this issue 3 years ago • 5 comments

When executing MicTextPresenter exampleSample we get an error

Ducasse avatar Oct 03 '22 19:10 Ducasse

Sigh - the error manifest itself in the rubrics

kasperosterbye avatar Oct 05 '22 07:10 kasperosterbye

Sorry but I do not understand.

Ducasse avatar Oct 05 '22 18:10 Ducasse

There is a to me unknown bug deep in Rubrics. It is seemingly related to lines with only an image. Images are stored in Text in a special character (character 1). If that character appears in alone a line (between two CR), it will fail in some - but not all cases.

I tried to patch the problem by enclosing the image in two zero-width non-printing spaces (unicode is full of weird things). This worked fine until it turned out that some fonts do not know that character, and put two ugly boxes instead.

PR #588 just ad a blank on each side, and the problem goes away again - at least for now.

Further, the issue might be related to some changes I had to make a year ago to get it to redraw embedded images in the first place.

I could surely need some help by a rubrics expert, but it is my understanding that there is no such expert around, which is why I made this patch.

kasperosterbye avatar Oct 05 '22 19:10 kasperosterbye

We can ask alain plantec

Ducasse avatar Oct 06 '22 18:10 Ducasse

I included the PR with the patch, but does not close this issue!

kasperosterbye avatar Oct 11 '22 08:10 kasperosterbye