mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
wikiheaders: Don't mangle Markdown tables in wordwrap.
This commit is contained in:
parent
a25d49c162
commit
645073961d
1 changed files with 2 additions and 0 deletions
|
|
@ -178,6 +178,8 @@ sub wordwrap_one_paragraph { # don't call this directly.
|
|||
if ($item ne '') {
|
||||
$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 {
|
||||
$retval = wordwrap_atom($p) . "\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue