Fix bug 1030 improperly placing the stays mark if the Payee starts with a digit.
This commit is contained in:
parent
b74d5419a1
commit
d63d845f41
1 changed files with 4 additions and 2 deletions
|
|
@ -84,7 +84,8 @@ dropped."
|
||||||
(save-excursion ;; this excursion checks state of entire
|
(save-excursion ;; this excursion checks state of entire
|
||||||
;; transaction and unclears if marked
|
;; transaction and unclears if marked
|
||||||
(goto-char (car bounds)) ;; beginning of xact
|
(goto-char (car bounds)) ;; beginning of xact
|
||||||
(skip-chars-forward "0-9./=\\- \t") ;; skip the date
|
(skip-chars-forward "0-9./=\\-") ;; skip the date
|
||||||
|
(skip-chars-forward " \t") ;; skip the white space after the date
|
||||||
(setq cur-status (and (member (char-after) '(?\* ?\!))
|
(setq cur-status (and (member (char-after) '(?\* ?\!))
|
||||||
(ledger-state-from-char (char-after))))
|
(ledger-state-from-char (char-after))))
|
||||||
;;if cur-status if !, or * then delete the marker
|
;;if cur-status if !, or * then delete the marker
|
||||||
|
|
@ -183,7 +184,8 @@ dropped."
|
||||||
(insert (make-string width ? ))))))
|
(insert (make-string width ? ))))))
|
||||||
(forward-line))
|
(forward-line))
|
||||||
(goto-char (car bounds))
|
(goto-char (car bounds))
|
||||||
(skip-chars-forward "0-9./=\\- \t")
|
(skip-chars-forward "0-9./=\\-") ;; Skip the date
|
||||||
|
(skip-chars-forward " \t") ;; Skip the white space
|
||||||
(insert (ledger-char-from-state state) " ")
|
(insert (ledger-char-from-state state) " ")
|
||||||
(setq new-status state)
|
(setq new-status state)
|
||||||
(if (re-search-forward "\\(\t\\| [ \t]\\)"
|
(if (re-search-forward "\\(\t\\| [ \t]\\)"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue