public function asNtext1line($value, $maxlen = null)
    {
        if ($value === null) {
            return $this->nullDisplay;
        }
        $suffix = '';
        if ((false !== ($n = strpos($value, "\n"))) || (false !== ($n = strpos($value, "\r")))) {
        	if (($n > 0) && (substr($value, $n - 1, 1) == "\r")) {
        		$n--;
        	}
        	$value = substr($value, 0, $n - 1);
        	$suffix = ' ...';	 
        }
        if ($maxlen) {
        	if ((strlen($value) + strlen($suffix) > $maxlen)) {
				$suffix = ' ...';
				$value = substr($value, 0, $maxlen - strlen($suffix));        		
        	}
        }
        return Html::encode($value . $suffix);
    }