summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2023-09-18 01:21:49 -0600
committerDan Allen <dan.j.allen@gmail.com>2023-09-18 01:21:49 -0600
commit28504c6a22a070603e29a327483da0e1f3c4eefd (patch)
treea9db9131c3b67603a40ca3e5e07d81e5bb3e3d5e /lib
parent24ba6fdd1785b522110e74f986013c860a8d9409 (diff)
improve comment about support for colspan and rowspan in the manpage converter
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/converter/manpage.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/asciidoctor/converter/manpage.rb b/lib/asciidoctor/converter/manpage.rb
index 049458e1..39258c06 100644
--- a/lib/asciidoctor/converter/manpage.rb
+++ b/lib/asciidoctor/converter/manpage.rb
@@ -383,12 +383,10 @@ r lw(\n(.lu*75u/100u).'
result.join LF
end
- # FIXME The reason this method is so complicated is because we are not
- # receiving empty(marked) cells when there are colspans or rowspans. This
- # method has to create a map of all cells and in the case of rowspans
- # create empty cells as placeholders of the span.
- # To fix this, asciidoctor needs to provide an API to tell the user if a
- # given cell is being used as a colspan or rowspan.
+ # NOTE This handler inserts empty cells to account for colspans and rowspans.
+ # In order to support colspans and rowspans propertly, that information must
+ # be computed up front and consulted when rendering the cell as this information
+ # is not available on the cell itself.
def convert_table node
result = []
if node.title?