mirror of
https://github.com/correl/ox-confluence-en.git
synced 2024-11-23 11:09:54 +00:00
Ensure list depth cannot be negative
This commit is contained in:
parent
38a293e507
commit
093cdc2e07
1 changed files with 2 additions and 2 deletions
|
@ -312,8 +312,8 @@ holding contextual information."
|
||||||
Used while building lists as tables, where the nested depth is
|
Used while building lists as tables, where the nested depth is
|
||||||
tracked as a property in INFO."
|
tracked as a property in INFO."
|
||||||
(let ((nested (plist-get info :ox-confluence-en-nested)))
|
(let ((nested (plist-get info :ox-confluence-en-nested)))
|
||||||
(- (org-confluence--li-depth item)
|
(max 0 (- (org-confluence--li-depth item)
|
||||||
(or nested 0))))
|
(or nested 0)))))
|
||||||
|
|
||||||
(defun ox-confluence-en-timestamp (timestamp contents info)
|
(defun ox-confluence-en-timestamp (timestamp contents info)
|
||||||
"Transcode a TIMESTAMP from Org to Confluence wiki markup.
|
"Transcode a TIMESTAMP from Org to Confluence wiki markup.
|
||||||
|
|
Loading…
Reference in a new issue