don't truncate explanation string
[org-tag-eldoc.git] / org-tag-eldoc-common.el
blob987694bce943697f584601206e2552a49a48ac2d
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 (string-clean-whitespace
18 (string-replace "\n" "" text)))
22 (provide 'org-tag-eldoc-common)
24 ;;; org-tag-eldoc-common.el ends here