Wanting a nofooter boolean flag in settings of VR3 asciidoctor

67 views
Skip to first unread message

zhaohe wang

unread,
Nov 25, 2022, 3:26:50 AM11/25/22
to leo-editor
Now the footer is shown in VR3 panel always. So I have to set `:nofooter:` in each body text. Would you plan to add this attribute?

Thanks for your help!

Thomas Passin

unread,
Nov 25, 2022, 10:39:10 AM11/25/22
to leo-editor
I will look into it.  This is for asciidoc, is it not?  Do you happen to know if this is a specific Asciidoctor directive, or do Asciidoc and Asciidoc3 also support it?

zhaohe wang

unread,
Nov 25, 2022, 11:38:12 AM11/25/22
to leo-editor
<https://docs.asciidoctor.org/asciidoc/latest/document/header-ref/>

I think `nofooter` is a specific **Asciidoctor** head attribute.

Asciidoc & Asciidoc3 don't suppor `nofooter` attribute after I had some test by change  myLeoSettings.leo.

Step1: use asciidoc3
```
@@string vr3-prefer-external = asciidoctor
@bool vr3-prefer-asciidoc3=True
```
Result: Not support :nofooter:

Step2: use asciidoc
```
@@string vr3-prefer-external = asciidoctor
@bool vr3-prefer-asciidoc3=False
```
Result: Not support :nofooter:

Thomas Passin

unread,
Nov 25, 2022, 5:08:06 PM11/25/22
to leo-editor
Thank you, that will be helpful.

Thomas Passin

unread,
Nov 25, 2022, 7:16:44 PM11/25/22
to leo-editor
Done - there is a new setting @bool vr3-asciidoctor-nofooter = True (default: False) to suppress the footer.  This only affects the external Asciidoctor processor.

The Pull Request for this change has been submitted.  When accepted and merged, it will be available in the devel  branch.

Thomas Passin

unread,
Nov 26, 2022, 8:15:20 AM11/26/22
to leo-editor
This change has been merged and is now available in the devel branch.

zhaohe wang

unread,
Nov 26, 2022, 8:36:31 AM11/26/22
to leo-editor
Thanks a lot!

The test step is:

1. git pull
2. @bool vr3-asciidoctor-nofooter=True in myLeoSettings.leo
3.  run reload-settings
4. Not input :nofooter: below @language asciidoc in body panel.

Result: VR3 panel does not show the footer. So the code run ok.

Thomas Passin

unread,
Nov 26, 2022, 9:27:57 AM11/26/22
to leo-editor
Thanks for testing.
Reply all
Reply to author
Forward
0 new messages