diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-06-10 15:07:33 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-10 15:07:33 -0600 |
| commit | f4bd057f69b3d72da73bf20e31fca7a2bfedbf3a (patch) | |
| tree | eee20f12c66dad23f8f57c8e5e3b2f97f5cc5951 /docs/modules/extend/examples | |
| parent | 8d25b995f19cd8ada4b692227e59bf7c33dc3868 (diff) | |
resolves #327 arrange body of article or manpage doctype into multiple columns if page-columns key is set in theme (PR #2232)
Diffstat (limited to 'docs/modules/extend/examples')
| -rw-r--r-- | docs/modules/extend/examples/pdf-converter-columns.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/docs/modules/extend/examples/pdf-converter-columns.rb b/docs/modules/extend/examples/pdf-converter-columns.rb deleted file mode 100644 index b6231bcc..00000000 --- a/docs/modules/extend/examples/pdf-converter-columns.rb +++ /dev/null @@ -1,18 +0,0 @@ -class PDFConverterColumns < (Asciidoctor::Converter.for 'pdf') - register_for 'pdf' - - def traverse node - if node.context == :document && - (columns = ColumnBox === bounds ? 1 : theme.base_columns || 1) > 1 - column_box [bounds.left, cursor], - columns: columns, - width: bounds.width, - reflow_margins: true, - spacer: theme.base_column_gap do - super - end - else - super - end - end -end |
