Fossil SCM
Only add the default <body> element to the header if the configured header lacks "<body". Formerly, it searched for "<body>" and that search would fail if the body element contained attributes. ToDo: This default body-element mechanism needs to be better documented.
Commit
24ecb3bbd566e8b44aaa3c8544182a756bf55d224792585d481f2cd5712a2d4e
Parent
50daa540f8881cb…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/style.c | ||
| +++ src/style.c | ||
| @@ -422,11 +422,11 @@ | ||
| 422 | 422 | image_url_var("logo"); |
| 423 | 423 | image_url_var("background"); |
| 424 | 424 | if( !login_is_nobody() ){ |
| 425 | 425 | Th_Store("login", g.zLogin); |
| 426 | 426 | } |
| 427 | - if( sqlite3_strlike("%<body>%", zHeader, 0)!=0 ){ | |
| 427 | + if( sqlite3_strlike("%<body%", zHeader, 0)!=0 ){ | |
| 428 | 428 | Th_Render(zDfltHeader); |
| 429 | 429 | } |
| 430 | 430 | if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1); |
| 431 | 431 | Th_Render(zHeader); |
| 432 | 432 | if( g.thTrace ) Th_Trace("END_HEADER<br />\n", -1); |
| 433 | 433 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -422,11 +422,11 @@ | |
| 422 | image_url_var("logo"); |
| 423 | image_url_var("background"); |
| 424 | if( !login_is_nobody() ){ |
| 425 | Th_Store("login", g.zLogin); |
| 426 | } |
| 427 | if( sqlite3_strlike("%<body>%", zHeader, 0)!=0 ){ |
| 428 | Th_Render(zDfltHeader); |
| 429 | } |
| 430 | if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1); |
| 431 | Th_Render(zHeader); |
| 432 | if( g.thTrace ) Th_Trace("END_HEADER<br />\n", -1); |
| 433 |
| --- src/style.c | |
| +++ src/style.c | |
| @@ -422,11 +422,11 @@ | |
| 422 | image_url_var("logo"); |
| 423 | image_url_var("background"); |
| 424 | if( !login_is_nobody() ){ |
| 425 | Th_Store("login", g.zLogin); |
| 426 | } |
| 427 | if( sqlite3_strlike("%<body%", zHeader, 0)!=0 ){ |
| 428 | Th_Render(zDfltHeader); |
| 429 | } |
| 430 | if( g.thTrace ) Th_Trace("BEGIN_HEADER_SCRIPT<br />\n", -1); |
| 431 | Th_Render(zHeader); |
| 432 | if( g.thTrace ) Th_Trace("END_HEADER<br />\n", -1); |
| 433 |
+1
-1
| --- www/customskin.md | ||
| +++ www/customskin.md | ||
| @@ -91,11 +91,11 @@ | ||
| 91 | 91 | the skin of the repository from which it was cloned. |
| 92 | 92 | |
| 93 | 93 | Header And Footer Processing |
| 94 | 94 | ---------------------------- |
| 95 | 95 | |
| 96 | -The header.txt and footer.txt files of a scan are merely the HTML text | |
| 96 | +The header.txt and footer.txt files of a skin are merely the HTML text | |
| 97 | 97 | of the header and footer. Except, before being prepended and appended to |
| 98 | 98 | the content, the header and footer text are run through a |
| 99 | 99 | [TH1 interpreter](./th1.md) that might adjust the text as follows: |
| 100 | 100 | |
| 101 | 101 | * All text within <th1>...</th1> is elided from the |
| 102 | 102 |
| --- www/customskin.md | |
| +++ www/customskin.md | |
| @@ -91,11 +91,11 @@ | |
| 91 | the skin of the repository from which it was cloned. |
| 92 | |
| 93 | Header And Footer Processing |
| 94 | ---------------------------- |
| 95 | |
| 96 | The header.txt and footer.txt files of a scan are merely the HTML text |
| 97 | of the header and footer. Except, before being prepended and appended to |
| 98 | the content, the header and footer text are run through a |
| 99 | [TH1 interpreter](./th1.md) that might adjust the text as follows: |
| 100 | |
| 101 | * All text within <th1>...</th1> is elided from the |
| 102 |
| --- www/customskin.md | |
| +++ www/customskin.md | |
| @@ -91,11 +91,11 @@ | |
| 91 | the skin of the repository from which it was cloned. |
| 92 | |
| 93 | Header And Footer Processing |
| 94 | ---------------------------- |
| 95 | |
| 96 | The header.txt and footer.txt files of a skin are merely the HTML text |
| 97 | of the header and footer. Except, before being prepended and appended to |
| 98 | the content, the header and footer text are run through a |
| 99 | [TH1 interpreter](./th1.md) that might adjust the text as follows: |
| 100 | |
| 101 | * All text within <th1>...</th1> is elided from the |
| 102 |