From 0c693b23c4ff8f98a151884a24f150a5ff746dd4 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 16 Oct 2020 19:16:18 -0400 Subject: org mode, unique code-block names & adjust headers - avoid org-mode undefined behavior, provide unique code-block names --- org/util_spine_markup_conversion_from_sisu.org | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'org/util_spine_markup_conversion_from_sisu.org') 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) { <> <> - <> + <> + <> + <> 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; -- cgit v1.2.3