35 public $insClass =
' class="diffchange diffchange-inline"';
36 public $delClass =
' class="diffchange diffchange-inline"';
47 if ( $this->
group !==
'' ) {
48 if ( $this->
tag ==
'ins' ) {
49 $this->line .=
"<ins{$this->insClass}>" . htmlspecialchars( $this->
group ) .
'</ins>';
50 } elseif ( $this->
tag ==
'del' ) {
51 $this->line .=
"<del{$this->delClass}>" . htmlspecialchars( $this->
group ) .
'</del>';
53 $this->line .= htmlspecialchars( $this->
group );
57 $this->
tag = $new_tag;
65 if ( $this->line !=
'' ) {
66 array_push( $this->lines, $this->line );
68 # make empty lines visible by inserting an NBSP
69 array_push( $this->lines,
"\u{00A0}" );
83 foreach ( $words
as $word ) {
88 if ( $word[0] ==
"\n" ) {
90 $word = substr( $word, 1 );
94 assert( !strstr( $word,
"\n" ) );
95 $this->
group .= $word;