Просмотр исходного кода

optional newline character for html

smiley 9 лет назад
Родитель
Сommit
3b2d83bf60
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      src/Output/QRString.php
  2. 1 1
      src/Output/QRStringOptions.php

+ 2 - 2
src/Output/QRString.php

@@ -69,7 +69,7 @@ class QRString extends QROutputAbstract{
 					: $this->options->textLight;
 			}
 
-			$str .= $this->options->textNewline;
+			$str .= $this->options->eol;
 		}
 
 		return $str;
@@ -97,7 +97,7 @@ class QRString extends QROutputAbstract{
 				$html .= '</'.$this->options->htmlRowTag.'>';
 			}
 
-			$html .= PHP_EOL;
+			$html .= $this->options->eol;
 		}
 
 		return $html;

+ 1 - 1
src/Output/QRStringOptions.php

@@ -24,7 +24,7 @@ class QRStringOptions{
 
 	public $textLight = ' ';
 
-	public $textNewline = PHP_EOL;
+	public $eol = PHP_EOL;
 
 	public $htmlRowTag = 'p';