From 7b6a8730de6f5ec57f5d45af57c3c9f90f389fef Mon Sep 17 00:00:00 2001 From: Rasmus Date: Wed, 28 Jan 2015 01:10:56 +0100 Subject: [PATCH] ox-ascii.el: Bug in description-list formatting * ox-ascii.el (org-ascii--current-text-width): Consider length of label for links. --- lisp/ox-ascii.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el index e294fab..cd239f9 100644 --- a/lisp/ox-ascii.el +++ b/lisp/ox-ascii.el @@ -624,8 +624,11 @@ INFO is a plist used as a communication channel." (string-width (or (org-ascii--checkbox parent-item info) "")) (string-width - (or (org-list-get-tag beg-item struct) - (org-list-get-bullet beg-item struct))))))))))))) + (let ((tag (or (org-list-get-tag beg-item struct) + (org-list-get-bullet beg-item struct)))) + (if (string-match org-bracket-link-analytic-regexp tag) + (match-string 4 tag) + tag))))))))))))) (defun org-ascii--current-justification (element) "Return expected justification for ELEMENT's contents. -- 2.2.2