unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Rajeev Narang <rajeev+jnk@sivalik.com>
Cc: 37887@debbugs.gnu.org
Subject: bug#37887: 27.0.50; icalendar-export-region: multiline Desc not handled
Date: Tue, 25 Aug 2020 16:43:28 -0700	[thread overview]
Message-ID: <CADwFkmngUCpir5UdOjV-ynr-s89NpM6kBsMGj1tJW2wGHZPZ8Q@mail.gmail.com> (raw)
In-Reply-To: <87ftjjbm2y.fsf@hm.sivalik.com> (Rajeev Narang's message of "Wed,  23 Oct 2019 09:58:13 -0400")

Rajeev Narang <rajeev+jnk@sivalik.com> writes:

> icalendar-export-region does not export multi-line Desc as it is imported by icalendar-import-file.  The following patch fixes the issue.
>
> diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
> index 1186ced3fb..1f4e582aa5 100644
> --- a/lisp/calendar/icalendar.el
> +++ b/lisp/calendar/icalendar.el
> @@ -1244,7 +1244,7 @@ icalendar--parse-summary-and-rest
>                       (concat "\\(" icalendar-import-format-uid "\\)??"))))
>  	;; Need the \' regexp in order to detect multi-line items
>          (setq s (concat "\\`"
> -                        (replace-regexp-in-string "%s" "\\(.*?\\)" s nil t)
> +                        (replace-regexp-in-string "%s" "\\([^z-a]*?\\)" s nil t)
>                          "\\'"))
>          (if (string-match s summary-and-rest)
>              (let (cla des loc org sta url uid) ;; sum

Could you please provide an example of how to reproduce this bug?

Best regards,
Stefan Kangas





  parent reply	other threads:[~2020-08-25 23:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-23 13:58 bug#37887: 27.0.50; icalendar-export-region: multiline Desc not handled Rajeev Narang via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-11-01  9:40 ` Eli Zaretskii
2020-08-25 23:43 ` Stefan Kangas [this message]
2020-08-26  1:13   ` Rajeev Narang via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-08-11 12:58 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADwFkmngUCpir5UdOjV-ynr-s89NpM6kBsMGj1tJW2wGHZPZ8Q@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=37887@debbugs.gnu.org \
    --cc=rajeev+jnk@sivalik.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).