File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -354,30 +354,18 @@ sub create_table {
354354 my $result ;
355355 my @lines ;
356356 my $header ;
357- my $type = " general" ;
358357 my @body ;
359358 my $column_count ;
360359
361360 @lines = split (/ \n / , $table );
362361 $header = $lines [0];
363- if ($header =~ / Enlightenment/ ) {
364- $type = " flavors" ;
365- }
366362 $header =~ s / [^|]// g ;
367363 $column_count = length ($header ) - 1;
368364
369365 $result .= " \n\\ bigskip" ;
370- if ($type eq " flavors" ) {
371- $result .= " \\ newgeometry{left=1.5cm,right=1.5cm}\n "
372- }
373366 $result .= " \n\\ begin{tabular}{ | " ;
374- if ($type eq " flavors" ) {
375- $result .= " p{2.3cm} | " x ($column_count - 1);
376- $result .= " p{2.3cm} | }\n " ;
377- } else {
378- $result .= " l | " x ($column_count - 1);
379- $result .= " l | }\n " ;
380- }
367+ $result .= " l | " x ($column_count - 1);
368+ $result .= " l | }\n " ;
381369 $result .= " \\ hline\n " ;
382370 $header = $lines [0];
383371 $header =~ s / ^\| // ;
@@ -396,9 +384,6 @@ sub create_table {
396384 }
397385 }
398386 $result .= " \n\\ end{tabular}\n " ;
399- if ($type eq " flavors" ) {
400- $result .= " \n\\ restoregeometry\n " ;
401- }
402387 $result .= " \n\\ bigskip\n " ;
403388
404389}
You can’t perform that action at this time.
0 commit comments