Asciidoctor User Manual: Applying Substitutions
I changed the code with sed script:
find . -name "*.adoc" -type f -print0 | xargs -0 gsed -i -f source.sed
source.sed:
:begin
/indent=0\]/,/\[subs="verbatim,quotes/ {
/subs="verbatim,quotes/! {
$! {
N;
b begin
}
}
s/indent=0\]\n\[subs="verbatim,quotes/indent=0,subs="verbatim,quotes/;
}
Comment From: sbrannen
Do the proposed changes fix any formatting issues in the generated documentation (HTML or PDF)? If so, which ones?
Or is the goal of this PR simply to merge the source and subs configuration lines?
Comment From: diguage
Do the proposed changes fix any formatting issues in the generated documentation (HTML or PDF)? If so, which ones?
Or is the goal of this PR simply to merge the
sourceandsubsconfiguration lines?
Sorry. I didn't compare them, I just improved them according to AsciiDoctor's syntax.
Comment From: sbrannen
This has been merged into master in eab61f692f5c0b7bb464fcd762e00b57e66018a7.
Thanks