iainbrighton / PScribo

PowerShell documentation framework
MIT License
230 stars 35 forks source link

Cell word wrap issue in HTML tables #83

Closed tpcarman closed 4 years ago

tpcarman commented 6 years ago

Setting table column widths causes HTML table contents to overflow cells. When reconfiguring table to be autosized, the HTML table then overflows the RH page margin. Word wrap is not being performed on cells in HTML tables.

This also causes issues for Word tables, with auto sized tables being out of proportion.

$ResourcePoolSummary | Table -Name 'Resource Pool Summary' -ColumnWidths 11,11,13,13,13,13,13,13

HTML Table with set column widths - cell contents overflow columns htmltable-setcolumnwidths

Word Table with set column widths - cell contents are word wrapped wordtable-setcolumnwidths

$ResourcePoolSummary | Table -Name 'Resource Pool Summary'

HTML Table auto sized - table overflows page margin htmltable-autosized

Word Table auto sized - columns are out of proportion wordtable-autosized