Skip to content

Code Block (treatment of spaces, tabs, newlines) #66

@stefanalt

Description

@stefanalt

Hi,

for my PDF test report generator I need the ability to render table cells without changing spaceing. The same might be required if you want to render program code to a table cell.

I have implemtented a few simple changes to achieve this, which is sufficient for my purposes. If this feature is interesting for this project I'll be willing to polish it up and share it.

More details

  • A new row/column/cell setting "code" to indicate that a cell is not be be processed by text_block() but by a new code_block() subroutine. The nameing of the new setting should be discussed!
  • row width calculation continues to use the same split-by-space and break-long-words algorithmn, but the content of the
    data array is left unchanged under control of the new cell-setting.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions