OSDN Git Service

BugTrack/560 Generate readable HTML source for table format
authorumorigu <umorigu@gmail.com>
Tue, 13 Feb 2018 15:16:18 +0000 (00:16 +0900)
committerumorigu <umorigu@gmail.com>
Tue, 13 Feb 2018 15:16:18 +0000 (00:16 +0900)
Append NewLine code after each TR element.

lib/convert_html.php

index a82f5a4..05a88cc 100644 (file)
@@ -681,7 +681,7 @@ class Table extends Element
                                $row_string = '';
                                foreach (array_keys($row) as $ncol)
                                        $row_string .= $row[$ncol]->toString();
-                               $part_string .= $this->wrap($row_string, 'tr');
+                               $part_string .= $this->wrap($row_string, 'tr') . "\n";
                        }
                        $string .= $this->wrap($part_string, $part);
                }