File tree Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Expand file tree Collapse file tree 5 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ $rendererOptions = [
9797 'lineNumbers' => true,
9898 // show a separator between different diff hunks in HTML renderers
9999 'separateBlock' => true,
100+ // show the (table) header
101+ 'showHeader' => true,
100102 // the frontend HTML could use CSS "white-space: pre;" to visualize consecutive whitespaces
101103 // but if you want to visualize them in the backend with "  ; ", you can set this to true
102104 'spacesToNbsp' => false,
Original file line number Diff line number Diff line change 3333 'lineNumbers ' => true ,
3434 // show a separator between different diff hunks in HTML renderers
3535 'separateBlock ' => true ,
36+ // show the (table) header
37+ 'showHeader ' => true ,
3638 // the frontend HTML could use CSS "white-space: pre;" to visualize consecutive whitespaces
3739 // but if you want to visualize them in the backend with " ", you can set this to true
3840 'spacesToNbsp ' => false ,
Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ protected function redererChanges(array $changes): string
5656 */
5757 protected function renderTableHeader (): string
5858 {
59+ if (!$ this ->options ['showHeader ' ]) {
60+ return '' ;
61+ }
62+
5963 return
6064 '<thead> ' .
6165 '<tr> ' .
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ protected function redererChanges(array $changes): string
4545 */
4646 protected function renderTableHeader (): string
4747 {
48+ if (!$ this ->options ['showHeader ' ]) {
49+ return '' ;
50+ }
51+
4852 $ colspan = $ this ->options ['lineNumbers ' ] ? '' : ' colspan="2" ' ;
4953
5054 return
Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ protected function redererChanges(array $changes): string
4545 */
4646 protected function renderTableHeader (): string
4747 {
48+ if (!$ this ->options ['showHeader ' ]) {
49+ return '' ;
50+ }
51+
4852 $ colspan = $ this ->options ['lineNumbers ' ] ? ' colspan="2" ' : '' ;
4953
5054 return
You can’t perform that action at this time.
0 commit comments