Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 1st Line Indentation in Code Blocks #19

Open
4 tasks
tajmone opened this issue Oct 20, 2019 · 0 comments
Open
4 tasks

Fix 1st Line Indentation in Code Blocks #19

tajmone opened this issue Oct 20, 2019 · 0 comments
Labels
💀 bug Qualcosa non funziona come dovrebbe

Comments

@tajmone
Copy link
Owner

tajmone commented Oct 20, 2019

Problem

After an Alan code block starting with an indentation is processed by Highlight, the indentation on the first line is lost.

  • Fix all occurrences in current sources using the {wj} workaround.
  • Before committing, check that it doesn't interfere with:
    • PDF builds (via Asciidoc-fopub).
    • Highlight.js (i.e. Alan Manual).

For more info on this problem, see: tajmone/hugo-book#15

For an example, see:

The {wj} Workaround

Right now, the only workaround solution is to add a word joiner character (⁠) at the beginning of the first indented line using its predefined attribute for character replacement ({wj}):

[source,alan, subs="+attributes"]
---------------------------------
{wj}  Add To Every object

This works fine, although it's far from being an ideal solution (but, at least, it shouldn't create any problems for other Asciidoctor backends and output formats).

@tajmone tajmone added the 💀 bug Qualcosa non funziona come dovrebbe label Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💀 bug Qualcosa non funziona come dovrebbe
Projects
None yet
Development

No branches or pull requests

1 participant