aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/util_spine_markup_conversion_from_sisu.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-10-16 19:16:18 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-10-19 13:26:15 -0400
commit0c693b23c4ff8f98a151884a24f150a5ff746dd4 (patch)
treef638d7942cab5b20adc3761ad7fcb62283eeefd8 /org/util_spine_markup_conversion_from_sisu.org
parentcgi.d arsd update (diff)
org mode, unique code-block names & adjust headers
- avoid org-mode undefined behavior, provide unique code-block names
Diffstat (limited to 'org/util_spine_markup_conversion_from_sisu.org')
-rw-r--r--org/util_spine_markup_conversion_from_sisu.org11
1 files changed, 7 insertions, 4 deletions
diff --git a/org/util_spine_markup_conversion_from_sisu.org b/org/util_spine_markup_conversion_from_sisu.org
index 21a5ffb..4204560 100644
--- a/org/util_spine_markup_conversion_from_sisu.org
+++ b/org/util_spine_markup_conversion_from_sisu.org
@@ -7,6 +7,7 @@
#+COPYRIGHT: Copyright (C) 2015 - 2020 Ralph Amissah
#+LANGUAGE: en
#+STARTUP: content hideblocks hidestars noindent entitiespretty
+#+OPTIONS: H:3 num:nil toc:t \n:nil @:t ::t |:t ^:nil _:nil -:t f:t *:t <:t
#+PROPERTY: header-args :exports code
#+PROPERTY: header-args+ :noweb yes
#+PROPERTY: header-args+ :eval no
@@ -207,7 +208,9 @@ if (endnotes.length == endnote_ref_count) {
void main(string[] args) {
<<from_sisu_rb_init>>
<<from_sisu_rb_body_format>>
- <<from_sisu_rb_header_format>>
+ <<from_sisu_rb_header_format_0>>
+ <<from_sisu_rb_header_format_1>>
+ <<from_sisu_rb_header_format_2>>
foreach(arg; args[1..$]) {
if (
!(arg.match(regex(r"--\w+")))
@@ -310,7 +313,7 @@ string format_body_string(string s) {
*** header format
**** format header string
-#+NAME: from_sisu_rb_header_format
+#+NAME: from_sisu_rb_header_format_0
#+BEGIN_SRC d
string format_header_string(string s) {
string o;
@@ -324,7 +327,7 @@ string format_header_string(string s) {
**** format main header
-#+NAME: from_sisu_rb_header_format
+#+NAME: from_sisu_rb_header_format_1
#+BEGIN_SRC d
string format_main_header(string hm, string hs = "", string c = "") {
string o;
@@ -341,7 +344,7 @@ string format_main_header(string hm, string hs = "", string c = "") {
**** format sub header
-#+NAME: from_sisu_rb_header_format
+#+NAME: from_sisu_rb_header_format_2
#+BEGIN_SRC d
string format_sub_header(string hs, string c) {
string o;