Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-17014

text block attribute uses DOS newlines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Obsolete
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: Misc
    • Labels:
      None

      Description

      As the title says, text block seems to convert \n newlines to \r\n DOS newlines while saving. This is totally unexpected and creates lots of headache, for example a case that i just had:

      {def $names=$user_object.data_map.names.content|explode("\n")}

      All lines in array except last one will have the \r character in end, which is invisible in output but will make comparisons etc fail.

        Attachments

          Activity

            People

            Assignee:
            unknown unknown
            Reporter:
            zurgutt zurgutt -
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated: