Fossil SCM

th1.md changes.

brickviking 2024-10-25 10:53 bv-corrections01
Commit 799d65e1a1c92b381eaff0902369e3179d31e2533cc727fe6a97d69f55a0b784
1 file changed +5 -5
+5 -5
--- www/th1.md
+++ www/th1.md
@@ -32,11 +32,11 @@
3232
the computation, then converting the result back into a string. (This might
3333
seem inefficient, but it is faster than people imagine, and numeric
3434
computations do not come up very often for the kinds of work that TH1 does,
3535
so it has never been a factor.)
3636
37
-A TH1 script consist of a sequence of commands.
37
+A TH1 script consists of a sequence of commands.
3838
Each command is terminated by the first *unescaped* newline or ";" character.
3939
The text of the command (excluding the newline or semicolon terminator)
4040
is broken into space-separated tokens. The first token is the command
4141
name and subsequent tokens are the arguments. In this sense, TH1 syntax
4242
is similar to the familiar command-line shell syntax.
@@ -288,11 +288,11 @@
288288
The capability expression is a list. Each term of the list is a
289289
cluster of [capability letters](./caps/ref.html).
290290
The overall expression is true if any
291291
one term is true. A single term is true if all letters within that
292292
term are true. Or, if the term begins with "!", then the term is true
293
-if none of the terms or true. Or, if the term begins with "@" then
293
+if none of the terms are true. Or, if the term begins with "@" then
294294
the term is true if all of the capability letters in that term are
295295
available to the "anonymous" user. Or, if the term is "*" then it is
296296
always true.
297297
298298
Examples:
@@ -383,11 +383,11 @@
383383
<a id="date"></a>TH1 date Command
384384
-----------------------------------
385385
386386
* date ?-local?
387387
388
-Return a strings which is the current time and date. If the -local
388
+Return a string which is the current time and date. If the -local
389389
option is used, the date appears using localtime instead of UTC.
390390
391391
<a id="decorate"></a>TH1 decorate Command
392392
-------------------------------------------
393393
@@ -570,11 +570,11 @@
570570
<a id="linecount"></a>TH1 linecount Command
571571
---------------------------------------------
572572
573573
* linecount STRING MAX MIN
574574
575
-Returns one more than the number of \n characters in STRING. But
575
+Returns one more than the number of `\n` characters in STRING. But
576576
never returns less than MIN or more than MAX.
577577
578578
<a id="markdown"></a>TH1 markdown Command
579579
-------------------------------------------
580580
@@ -842,11 +842,11 @@
842842
-----------------------------------------------
843843
844844
* verifyCsrf
845845
846846
Before using the results of a form, first call this command to verify
847
-that this Anti-CSRF token is present and is valid. If the Anti-CSRF token
847
+that the Anti-CSRF token is present and is valid. If the Anti-CSRF token
848848
is missing or is incorrect, that indicates a cross-site scripting attack.
849849
If the event of an attack is detected, an error message is generated and
850850
all further processing is aborted.
851851
852852
<a id="verifyLogin"></a>TH1 verifyLogin Command
853853
--- www/th1.md
+++ www/th1.md
@@ -32,11 +32,11 @@
32 the computation, then converting the result back into a string. (This might
33 seem inefficient, but it is faster than people imagine, and numeric
34 computations do not come up very often for the kinds of work that TH1 does,
35 so it has never been a factor.)
36
37 A TH1 script consist of a sequence of commands.
38 Each command is terminated by the first *unescaped* newline or ";" character.
39 The text of the command (excluding the newline or semicolon terminator)
40 is broken into space-separated tokens. The first token is the command
41 name and subsequent tokens are the arguments. In this sense, TH1 syntax
42 is similar to the familiar command-line shell syntax.
@@ -288,11 +288,11 @@
288 The capability expression is a list. Each term of the list is a
289 cluster of [capability letters](./caps/ref.html).
290 The overall expression is true if any
291 one term is true. A single term is true if all letters within that
292 term are true. Or, if the term begins with "!", then the term is true
293 if none of the terms or true. Or, if the term begins with "@" then
294 the term is true if all of the capability letters in that term are
295 available to the "anonymous" user. Or, if the term is "*" then it is
296 always true.
297
298 Examples:
@@ -383,11 +383,11 @@
383 <a id="date"></a>TH1 date Command
384 -----------------------------------
385
386 * date ?-local?
387
388 Return a strings which is the current time and date. If the -local
389 option is used, the date appears using localtime instead of UTC.
390
391 <a id="decorate"></a>TH1 decorate Command
392 -------------------------------------------
393
@@ -570,11 +570,11 @@
570 <a id="linecount"></a>TH1 linecount Command
571 ---------------------------------------------
572
573 * linecount STRING MAX MIN
574
575 Returns one more than the number of \n characters in STRING. But
576 never returns less than MIN or more than MAX.
577
578 <a id="markdown"></a>TH1 markdown Command
579 -------------------------------------------
580
@@ -842,11 +842,11 @@
842 -----------------------------------------------
843
844 * verifyCsrf
845
846 Before using the results of a form, first call this command to verify
847 that this Anti-CSRF token is present and is valid. If the Anti-CSRF token
848 is missing or is incorrect, that indicates a cross-site scripting attack.
849 If the event of an attack is detected, an error message is generated and
850 all further processing is aborted.
851
852 <a id="verifyLogin"></a>TH1 verifyLogin Command
853
--- www/th1.md
+++ www/th1.md
@@ -32,11 +32,11 @@
32 the computation, then converting the result back into a string. (This might
33 seem inefficient, but it is faster than people imagine, and numeric
34 computations do not come up very often for the kinds of work that TH1 does,
35 so it has never been a factor.)
36
37 A TH1 script consists of a sequence of commands.
38 Each command is terminated by the first *unescaped* newline or ";" character.
39 The text of the command (excluding the newline or semicolon terminator)
40 is broken into space-separated tokens. The first token is the command
41 name and subsequent tokens are the arguments. In this sense, TH1 syntax
42 is similar to the familiar command-line shell syntax.
@@ -288,11 +288,11 @@
288 The capability expression is a list. Each term of the list is a
289 cluster of [capability letters](./caps/ref.html).
290 The overall expression is true if any
291 one term is true. A single term is true if all letters within that
292 term are true. Or, if the term begins with "!", then the term is true
293 if none of the terms are true. Or, if the term begins with "@" then
294 the term is true if all of the capability letters in that term are
295 available to the "anonymous" user. Or, if the term is "*" then it is
296 always true.
297
298 Examples:
@@ -383,11 +383,11 @@
383 <a id="date"></a>TH1 date Command
384 -----------------------------------
385
386 * date ?-local?
387
388 Return a string which is the current time and date. If the -local
389 option is used, the date appears using localtime instead of UTC.
390
391 <a id="decorate"></a>TH1 decorate Command
392 -------------------------------------------
393
@@ -570,11 +570,11 @@
570 <a id="linecount"></a>TH1 linecount Command
571 ---------------------------------------------
572
573 * linecount STRING MAX MIN
574
575 Returns one more than the number of `\n` characters in STRING. But
576 never returns less than MIN or more than MAX.
577
578 <a id="markdown"></a>TH1 markdown Command
579 -------------------------------------------
580
@@ -842,11 +842,11 @@
842 -----------------------------------------------
843
844 * verifyCsrf
845
846 Before using the results of a form, first call this command to verify
847 that the Anti-CSRF token is present and is valid. If the Anti-CSRF token
848 is missing or is incorrect, that indicates a cross-site scripting attack.
849 If the event of an attack is detected, an error message is generated and
850 all further processing is aborted.
851
852 <a id="verifyLogin"></a>TH1 verifyLogin Command
853

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button