Skip to content

Commit

Permalink
fix warning in rakudoc-tables when cell empty
Browse files Browse the repository at this point in the history
  • Loading branch information
finanalyst committed Jan 7, 2024
1 parent c06cca1 commit 2eac269
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
>Change log

# 2024-01-07 v4.10.2
* fix warning in rakudoc-tables when cell empty

# 2024-01-04 v4.10.1
* add rakudoc-table to plugins

Expand Down Expand Up @@ -506,4 +509,4 @@ change testing


----
Rendered from CHANGELOG at 2024-01-04T23:40:02Z
Rendered from CHANGELOG at 2024-01-07T13:02:22Z
2 changes: 1 addition & 1 deletion META6.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Raku::Pod::Render",
"description": "A generic Pod6 Renderer with custom Pod::Blocks, FormatCodes for one or more files using templates, provides HTML and MarkDown.",
"version": "4.10.1",
"version": "4.10.2",
"perl": "6.d",
"authors": [
"Richard Hainsworth"
Expand Down
3 changes: 3 additions & 0 deletions doc/CHANGELOG.rakudoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
=TITLE Raku::Pod::Render
=SUBTITLE Change log

=head1 2024-01-07 v4.10.2
=item fix warning in rakudoc-tables when cell empty

=head1 2024-01-04 v4.10.1
=item add rakudoc-table to plugins
=item2 the plugin adds procedural tables as defined in RakuDoc v2 to HTML2 only
Expand Down
3 changes: 2 additions & 1 deletion resources/rakudoc-table/rakudoc-table-templates.raku
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ use v6.d;
$content ~= "rakudoc-cell-$_ "
} }
$content ~= 'rakudoc-cell-label' if $cell<label>;
$content ~= '">' ~ $cell<data>;
with $cell<data> { $content ~= '">' ~ $cell<data> }
else { $content ~= '">' }
if $cell<header> {
$rv ~= "<th$content\</th>"
}
Expand Down

0 comments on commit 2eac269

Please sign in to comment.