~whereswaldon/arbor-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] Fix what I can from the suggestions.

Details
Message ID
<20200921215839.29050-1-tekk@linuxmail.org>
DKIM signature
missing
Download raw message
Patch: +9 -13
---
 reply-view.go | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/reply-view.go b/reply-view.go
index 620fed0..ea845fa 100644
--- a/reply-view.go
+++ b/reply-view.go
@@ -310,7 +310,7 @@ func gatherParagraphs(text string) []string {

	for _, paragraph := range strings.Split(text, "\n") {
		// Remember to chomp blank lines at the start of the message
		if paragraph == "" && len(retVal) > 0 {
		if paragraph == "" && len(paragraphs) > 0 {
			stringIndex += 1
		} else {
			if len(paragraphs) <= stringIndex {
@@ -363,19 +363,15 @@ func (c *ReplyListView) sendReply() {
			}
		}
	} else {
		if err != nil {
			log.Printf("failed building reply: %v", err)
		} else {
			parent := c.ReplyingTo.Reply
		parent := c.ReplyingTo.Reply

			for _, text := range gatherParagraphs(replyText) {
				convo, err := nodeBuilder.NewReply(parent, text, []byte{})
				if err != nil {
					log.Printf("failed creating new conversation: %v", err)
				} else {
					c.postReply(author, convo)
					parent = convo
				}
		for _, text := range gatherParagraphs(replyText) {
			convo, err := nodeBuilder.NewReply(parent, text, []byte{})
			if err != nil {
				log.Printf("failed building reply: %v", err)
			} else {
				c.postReply(author, convo)
				parent = convo
			}
		}
	}
--
2.20.1
Reply to thread Export thread (mbox)