hxtabletrans1
Transpose an html or xhtml table
Usage
hxtabletrans [-c]
[-x]
[-v]
[file-or-URL]
Overview
hxtabletrans reads an HTML or XHTML file (or fragment), finds the first <table> element and outputs that element with the rows and columns transposed. I.e., rows become columns and columns become rows.
Any grouping of rows with <thead>, <tbody> or <tfoot> is lost. Also, any comments outside the cells are lost.
Options
The following options are supported:
-
-c -
Also try to transpose the contents of cells. If a cell consists only of horizontal or vertical arrows and ellipses (apart from mark-up and whitespace), then those arrows and ellipses are replaced by their transposed counterparts. E.g., a right arrow becomes a down arrow.
-
-x -
Use XML syntax. Empty elements are written with a slash (/) at the end, e.g.: <br/>
-
-v -
Print the version number and exit.
Releases
7 releases since Debian 8 (Jessie); the text changed 1 time.
-c since Debian 9 (Stretch).