From 093cdc2e0739cfbb8db0a1c04612a3dd6397cb8d Mon Sep 17 00:00:00 2001 From: Stanley Jaddoe Date: Thu, 21 Jan 2021 17:21:13 +0100 Subject: [PATCH] Ensure list depth cannot be negative --- ox-confluence-en.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ox-confluence-en.el b/ox-confluence-en.el index 8ce83d7..a51394c 100644 --- a/ox-confluence-en.el +++ b/ox-confluence-en.el @@ -312,8 +312,8 @@ holding contextual information." Used while building lists as tables, where the nested depth is tracked as a property in INFO." (let ((nested (plist-get info :ox-confluence-en-nested))) - (- (org-confluence--li-depth item) - (or nested 0)))) + (max 0 (- (org-confluence--li-depth item) + (or nested 0))))) (defun ox-confluence-en-timestamp (timestamp contents info) "Transcode a TIMESTAMP from Org to Confluence wiki markup.