mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-10 12:35:17 +00:00
wikiheaders: Don't mangle Markdown tables in wordwrap.
This commit is contained in:
@@ -178,6 +178,8 @@ sub wordwrap_one_paragraph { # don't call this directly.
|
|||||||
if ($item ne '') {
|
if ($item ne '') {
|
||||||
$retval .= wordwrap_with_bullet_indent($bullet, $item);
|
$retval .= wordwrap_with_bullet_indent($bullet, $item);
|
||||||
}
|
}
|
||||||
|
} elsif ($p =~ /\A\s*\|.*\|\s*\n/) { # Markdown table
|
||||||
|
$retval = "$p\n"; # don't wrap it (!!! FIXME: but maybe parse by lines until we run out of table...)
|
||||||
} else {
|
} else {
|
||||||
$retval = wordwrap_atom($p) . "\n";
|
$retval = wordwrap_atom($p) . "\n";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user