Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39103

losing newlines in mail messages forwarded by mail archive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.9.x
    • Fix Version/s: None
    • Component/s: Kernel
    • Labels:
      None
    • Previous Issue Keys:
      KNL-933

      Description

      send mail through a mail archive. Original message should be in text format, not HTML. The system will add an HTML version, and it will be missing all newlines.

      — kernel-impl/src/main/java/org/sakaiproject/util/impl/FormattedTextImpl.java (revision 3905)
      +++ kernel-impl/src/main/java/org/sakaiproject/util/impl/FormattedTextImpl.java (working copy)
      @@ -419,7 +419,7 @@
      if (value != null && !"".equals(value)) {
      val = StringEscapeUtils.escapeHtml(value);
      if (escapeNewlines && val != null)

      { - val.replace("\n", "<br/>\n"); + val = val.replace("\n", "<br/>\n"); }

      }

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  dhorwitz David Horwitz
                  Reporter:
                  hedrick Charles Hedrick
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration