чување 999c76462e7508d0221f951f3db806962f809c38
родитељ 86cf5f8f8834d069b49c9f9a1765826a69cfcce9
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Thu, 24 Dec 2020 13:00:27 +0100
Bugfix: Added handling of ST_CODE in more cases
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 3, додавања: 5(+), брисања: 5(-)
diff --git a/index.html b/index.html
@@ -19,7 +19,7 @@
<p>Aside from the obvious (<strong>GCC</strong> and <strong>GNU make</strong>), slweb requires <strong>groff</strong>(1)
and <strong>gzip</strong>(1) to create and compress documentation. <strong>git</strong>(1) is, aside from
-cloning the repository, required to use the directive <code>{git-log}</code>.</p>
+cloning the repository, required to use the directive <code>{git-log}</code>.</p>
<h2>Install</h2>
@@ -114,7 +114,7 @@ this program. If not, see <https://www.gnu.org/licenses/>. </p>
<div id="git-log">
Previous commit:
-index.slw b43f045 2020-12-20 19:59:10 +0100 (Страхиња Радић) (HEAD -> master, origin/master, origin/HEAD)
+index.slw 86cf5f8 2020-12-24 12:42:19 +0100 (Страхиња Радић) (HEAD -> master, origin/master, origin/HEAD)
</div><!--git-log-->
diff --git a/index.slw b/index.slw
@@ -13,7 +13,7 @@ stylesheet: index.css
Aside from the obvious (**GCC** and **GNU make**), slweb requires **groff**(1)
and **gzip**(1) to create and compress documentation. **git**(1) is, aside from
-cloning the repository, required to use the directive `{git-log}`.
+cloning the repository, required to use the directive `{git-log}`.
## Install
diff --git a/slweb.c b/slweb.c
@@ -987,7 +987,7 @@ slweb_parse(uint8_t* buffer, FILE* output,
break;
case '/':
- if (state & (ST_PRE | ST_HEADING))
+ if (state & (ST_PRE | ST_CODE | ST_HEADING))
{
*ptoken++ = *pline++;
colno++;
@@ -1009,7 +1009,7 @@ slweb_parse(uint8_t* buffer, FILE* output,
break;
case '}':
- if (state & (ST_PRE | ST_HEADING))
+ if (state & (ST_PRE | ST_CODE | ST_HEADING))
{
*ptoken++ = *pline++;
colno++;