[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 4844a1147a 44/63: no newline after READ MORE head
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 4844a1147a 44/63: no newline after READ MORE heading |
Date: |
Sun, 4 Aug 2024 04:00:36 -0400 (EDT) |
branch: elpa/mastodon
commit 4844a1147a7ae23c996aa21a98ae4229fe172649
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>
no newline after READ MORE heading
---
lisp/mastodon-search.el | 4 ++--
lisp/mastodon-tl.el | 5 ++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/lisp/mastodon-search.el b/lisp/mastodon-search.el
index e69366e692..f862f3cf46 100644
--- a/lisp/mastodon-search.el
+++ b/lisp/mastodon-search.el
@@ -128,14 +128,14 @@ Optionally add string TYPE after HEADING."
(insert
(mastodon-search--format-heading str type)))
-(defun mastodon-search--format-heading (str &optional type)
+(defun mastodon-search--format-heading (str &optional type no-newline)
"Format STR as a heading.
Optionally add string TYPE after HEADING."
(mastodon-tl--set-face
(concat "\n " mastodon-tl--horiz-bar "\n "
(upcase str) " "
(if type (upcase type) "") "\n"
- " " mastodon-tl--horiz-bar "\n")
+ " " mastodon-tl--horiz-bar (unless no-newline "\n"))
'success))
(defvar mastodon-search-types
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 70d02236a2..b9a5535ab5 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1573,9 +1573,8 @@ Folding decided by `mastodon-tl--fold-toots-at-length'."
(length< body mastodon-tl--fold-toots-at-length))
body
(let* ((heading (mastodon-search--format-heading
- (mastodon-tl--make-link
- "READ MORE"
- 'read-more)))
+ (mastodon-tl--make-link "READ MORE" 'read-more)
+ nil :no-newline))
(display (concat (substring body 0
mastodon-tl--fold-toots-at-length)
heading)))
- [nongnu] elpa/mastodon 0ef13ab348 55/63: fix prev-item-id, (continued)
- [nongnu] elpa/mastodon 0ef13ab348 55/63: fix prev-item-id, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 49261b91b0 59/63: Revert "replace persist with multisession", ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 351bd73875 54/63: fix prev-item-id, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 712a2af648 29/63: update info, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 0cd77c1880 37/63: Merge branch 'with-toot-item' into develop, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 82931c0869 14/63: readme, emoji, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 4e8d286164 12/63: mastodon-use-emojify customize, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 4697c073e8 19/63: message -> user-error, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 344da8f2f2 23/63: fold toots customize/ refactor, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon db227a8c25 31/63: flip an if clause, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 4844a1147a 44/63: no newline after READ MORE heading,
ELPA Syncer <=
- [nongnu] elpa/mastodon dd1b0ab770 42/63: add mastodon-tl--fold-post, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 30b02296ca 48/63: fix where we leave point on (un)folding, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 8d6983667d 51/63: refactor toot--toggle-bookmark, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon da0e348bc7 61/63: Revert "multisession var in -toot.el", ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 45903de823 63/63: info update, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 3f9b305b5f 24/63: flymake, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon bb1b33e2fb 39/63: toot.el: use mastodon-toot--base-toot-or-item-json, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon e66ce7b6fb 52/63: folding comments / action docstring, ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon 4ac5b57ae6 62/63: Merge branch 'develop', ELPA Syncer, 2024/08/04
- [nongnu] elpa/mastodon f8ee682bb4 36/63: flip an if clause, ELPA Syncer, 2024/08/04