Hi,
Let's say I have the following code :
[source,shell,numbered]
----
some source
code
yeah!
----
If my source code contains a line with only dashes (at least four) it will
prematurelly close my source block, this is not what I want…
I found the two following solutions :
1) Use an open block :
[source,shell,numbered]
--
some source
--------
^^^ the above line won't close the block
code
yeah!
--
Then, only a line with exactly two dashes would prematurelly close the
block. This is still problematic because I may encounter such files.
2) Add four spaces in front of all lines of the source :
[source,shell,numbered]
----
some source
code
---------------
^^^ line of dashes, no problem
yeah!
----
This is better as it would allow me to have lines of dashes (of any length)
in my source but those four spaces will be presents in the rendered
document…
Do you have any advice ?
Stef
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.