summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-25 16:59:47 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-25 16:59:47 +0000
commit2f3be6973c2c4bd7f4920f55c5e1ebea4cd79193 (patch)
treee26f7371b74227ca3b7077ec55dfba3940c34e7b
parent2deca3c6912a76ec5cfc939b23f08c34c18dbf58 (diff)
downloadexecline-2f3be6973c2c4bd7f4920f55c5e1ebea4cd79193.tar.gz
execline-2f3be6973c2c4bd7f4920f55c5e1ebea4cd79193.tar.xz
execline-2f3be6973c2c4bd7f4920f55c5e1ebea4cd79193.zip
Doc formatting fixes
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--doc/el_pushenv.html12
-rw-r--r--doc/el_substitute.html17
2 files changed, 14 insertions, 15 deletions
diff --git a/doc/el_pushenv.html b/doc/el_pushenv.html
index d22ce9d..5f3ac98 100644
--- a/doc/el_pushenv.html
+++ b/doc/el_pushenv.html
@@ -35,10 +35,8 @@ commands in the execline language via the
 <a href="runblock.html">runblock</a> command was impossible.
 </p>
 
-<a name="push" />
-
 <p>
- To solve that issue, execline now implements a kind of <em>environment
+<div id="push">To solve that issue</div>, execline now implements a kind of <em>environment
 stack</em>. When execlineb reads the arguments, it does
 not overwrite the positional parameters, but <em>pushes</em> them on a
 stack:
@@ -62,10 +60,8 @@ frame of positional parameters, without paying attention to the deeper
 levels.
 </p>
 
-<a name="pop" />
-
 <p>
- When you are done with the arguments, it is advisable to <em>drop</em>
+ <div id="pop">When you are done with the arguments</div>, it is advisable to <em>drop</em>
 the current frame, and <em>pop</em> the environment stack to get it back
 to its previous state:
 </p>
@@ -116,9 +112,9 @@ which will run <em>prog</em> with the same environment as the script's
 caller.
 </p>
 
-<a name="integrated" />
-
+<div id="integrated">
 <h2> Substituting positional parameters without touching the environment </h2>
+</div>
 
 <p>
  Most of the time, you just need to substitute the positional parameters
diff --git a/doc/el_substitute.html b/doc/el_substitute.html
index 6e6decb..ae3481e 100644
--- a/doc/el_substitute.html
+++ b/doc/el_substitute.html
@@ -78,8 +78,9 @@ then execute the <tt>echo</tt> command. So that script will print
 <tt>blah</tt> on stdout.
 </p>
 
-<a name="quoting" />
+<div id="quoting">
 <h2> Quoting </h2>
+</div>
 
 <p>
  execline allows you to write literal <tt>${<em>foo</em>}</tt> constructs
@@ -163,9 +164,9 @@ $B \$B \\$B \\\$B \\\\$B \\\\\$B
  Phew.
 </p>
 
-<a name="el_transform">
+<div id="el_transform">
 <h2> Value transformations </h2>
-</a>
+</div>
 
 <p>
  A value can go through
@@ -175,9 +176,9 @@ substituted. It can be <a href="el_transform.html#crunch">crunched</a>,
 <a href="el_transform.html#split">split</a>.
 </p>
 
-<a name="split">
+<div id="split">
 <h2> Substitution of split values </h2>
-</a>
+</div>
 
 <p>
  A <a href="el_transform.html">split</a> value for <tt>FOO</tt> means that
@@ -215,8 +216,9 @@ words beginning with the right amount of spaces, thus substituted
 values cannot prematurely terminate a block.)
 </p>
 
-<a name="recursive" />
+<div id="recursive">
 <h3> Recursive substitutions </h3>
+</div>
 
 <p>
  A direct consequence of that rule is that substitutions will be performed
@@ -280,8 +282,9 @@ ax1 bx1 cx1 dx1 ax2 bx2 cx2 dx2 ax3 bx3 cx3 dx3
  in that order.
 </p>
 
-<a name="brainfsck"></a>
+<div id="brainfsck">
 <h2> Not for the faint of heart </h2>
+</div>
 
 <p>
  If you think you have mastered the art of execline substitution, then