neekey / table-parser

A parser to parse table style output from shell
MIT License
25 stars 13 forks source link

Handle tables with lined separators between headers and the table body #10

Open KyleAMathews opened 7 years ago

KyleAMathews commented 7 years ago

e.g. the output from pdfimages

page   num  type   width height color comp bpc  enc interp  object ID x-ppi y-ppi size ratio
--------------------------------------------------------------------------------------------
   1     0 image     495    96  cmyk    4   8  jpeg   no      1380  0   301   302 45.3K  24%
   7     1 image     488   534  rgb     3   8  image  no        17  0    78    86 16.3K 2.1%
  11     2 image     706   580  rgb     3   8  image  no        26  0   111   111 26.5K 2.2%
  15     3 image     477   400  rgb     3   8  image  no        37  0    75    75 11.9K 2.1%
  24     4 image     477   400  rgb     3   8  image  no        61  0    74    74 14.5K 2.6%
neekey commented 7 years ago

hmm...this is quite a specific case, instead of just handling it specifically, what about I provide a option to ignore certain lines?