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

text block attribute uses DOS newlines

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.2.0
    • Misc
    • 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

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

            Dates

              Created:
              Updated: