From 7b75c187742daca32a5784c6ca2a6643a809d448 Mon Sep 17 00:00:00 2001 From: Masanao Igarashi Date: Mon, 28 Apr 2025 14:07:24 +0900 Subject: [PATCH] Avoid negative numbers --- ox-rst.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ox-rst.el b/ox-rst.el index 0fdfdac..381ee4c 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -1482,8 +1482,9 @@ a communication channel." (org-rst--justify-lines contents width (org-export-table-cell-alignment table-cell info)) "\\"))) - (setq contents (concat data - (make-string (- width (string-width data)) ? )))) + (setq contents + (concat data + (make-string (max 0 (- width (string-width data))) ? )))) ;; Return cell. (concat (format " %s " contents) (when (org-export-get-next-element table-cell info) "|"))))