Add a function to prettify format explanation long string block
[org-tag-eldoc.git] / org-tag-eldoc-common.el
blob82709f1e7a2a48458751581089c3f12fdc1321f6
1 ;;; org-tag-eldoc-common.el --- common functions for org-tag-eldoc -*- lexical-binding: t; -*-
2 ;; -*- coding: utf-8 -*-
4 ;; Copyright (C) 2024-2025 Christopher M. Miles, all rights reserved.
6 ;;; Commentary:
10 ;;; Code:
12 (defvar org-tag-eldoc--explanation nil
13 "A private variable to store the function internal variable `explanation'.")
15 (defun org-tag-eldoc-common--format-explanation (text)
16 "Format TEXT for better displaying."
17 (require 'subr-x)
18 (thread-last
19 text
20 (string-clean-whitespace)
21 ;; (string-replace "\n" "")
26 (provide 'org-tag-eldoc-common)
28 ;;; org-tag-eldoc-common.el ends here