Mercurial > hgrepos > hgweb.cgi > yatex
changeset 236:328a212a2160 dev
Intelligent newline for align insert no `&' at the first line.
author | yuuji@gentei.org |
---|---|
date | Sat, 28 Jan 2012 22:32:30 +0900 |
parents | f70aae80489e |
children | af1e6c48eac0 |
files | yatexenv.el |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/yatexenv.el Sat Jan 28 20:05:23 2012 +0900 +++ b/yatexenv.el Sat Jan 28 22:32:30 2012 +0900 @@ -2,7 +2,7 @@ ;;; YaTeX environment-specific functions. ;;; yatexenv.el ;;; (c) 1994-2006 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Sat Jan 28 18:31:05 2012 on firestorm +;;; Last modified Sat Jan 28 22:27:24 2012 on firestorm ;;; $Id$ ;;; @@ -189,10 +189,8 @@ "\\(&\\)\\|\\(\\\\\\\\\\)" YaTeX-comment-prefix p t) (if (match-beginning 1) (setq cols (1+ cols)) (throw 'done t))))) (save-excursion - (if (= cols 0) - (insert "&") - (while (>= (setq cols (1- cols)) 0) - (insert "& ")))) + (while (>= (setq cols (1- cols)) 0) + (insert "& "))) (YaTeX-indent-line))) (mapcar