Fossil SCM
th1.md changes.
Commit
799d65e1a1c92b381eaff0902369e3179d31e2533cc727fe6a97d69f55a0b784
Parent
cc233b2fa8686b4…
1 file changed
+5
-5
+5
-5
| --- www/th1.md | ||
| +++ www/th1.md | ||
| @@ -32,11 +32,11 @@ | ||
| 32 | 32 | the computation, then converting the result back into a string. (This might |
| 33 | 33 | seem inefficient, but it is faster than people imagine, and numeric |
| 34 | 34 | computations do not come up very often for the kinds of work that TH1 does, |
| 35 | 35 | so it has never been a factor.) |
| 36 | 36 | |
| 37 | -A TH1 script consist of a sequence of commands. | |
| 37 | +A TH1 script consists of a sequence of commands. | |
| 38 | 38 | Each command is terminated by the first *unescaped* newline or ";" character. |
| 39 | 39 | The text of the command (excluding the newline or semicolon terminator) |
| 40 | 40 | is broken into space-separated tokens. The first token is the command |
| 41 | 41 | name and subsequent tokens are the arguments. In this sense, TH1 syntax |
| 42 | 42 | is similar to the familiar command-line shell syntax. |
| @@ -288,11 +288,11 @@ | ||
| 288 | 288 | The capability expression is a list. Each term of the list is a |
| 289 | 289 | cluster of [capability letters](./caps/ref.html). |
| 290 | 290 | The overall expression is true if any |
| 291 | 291 | one term is true. A single term is true if all letters within that |
| 292 | 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 | |
| 293 | +if none of the terms are true. Or, if the term begins with "@" then | |
| 294 | 294 | the term is true if all of the capability letters in that term are |
| 295 | 295 | available to the "anonymous" user. Or, if the term is "*" then it is |
| 296 | 296 | always true. |
| 297 | 297 | |
| 298 | 298 | Examples: |
| @@ -383,11 +383,11 @@ | ||
| 383 | 383 | <a id="date"></a>TH1 date Command |
| 384 | 384 | ----------------------------------- |
| 385 | 385 | |
| 386 | 386 | * date ?-local? |
| 387 | 387 | |
| 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 | |
| 389 | 389 | option is used, the date appears using localtime instead of UTC. |
| 390 | 390 | |
| 391 | 391 | <a id="decorate"></a>TH1 decorate Command |
| 392 | 392 | ------------------------------------------- |
| 393 | 393 | |
| @@ -570,11 +570,11 @@ | ||
| 570 | 570 | <a id="linecount"></a>TH1 linecount Command |
| 571 | 571 | --------------------------------------------- |
| 572 | 572 | |
| 573 | 573 | * linecount STRING MAX MIN |
| 574 | 574 | |
| 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 | |
| 576 | 576 | never returns less than MIN or more than MAX. |
| 577 | 577 | |
| 578 | 578 | <a id="markdown"></a>TH1 markdown Command |
| 579 | 579 | ------------------------------------------- |
| 580 | 580 | |
| @@ -842,11 +842,11 @@ | ||
| 842 | 842 | ----------------------------------------------- |
| 843 | 843 | |
| 844 | 844 | * verifyCsrf |
| 845 | 845 | |
| 846 | 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 | |
| 847 | +that the Anti-CSRF token is present and is valid. If the Anti-CSRF token | |
| 848 | 848 | is missing or is incorrect, that indicates a cross-site scripting attack. |
| 849 | 849 | If the event of an attack is detected, an error message is generated and |
| 850 | 850 | all further processing is aborted. |
| 851 | 851 | |
| 852 | 852 | <a id="verifyLogin"></a>TH1 verifyLogin Command |
| 853 | 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 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 |