Ticket #1742 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Line breaks are added for copy-pasted text

Reported by: hans Owned by: jukka
Priority: major Milestone:
Component: generic Version:
Keywords: Cc:
Time planned: Time remaining: 0h
Time spent:

Description (last modified by hans) (diff)

Line breaks are added when text is copied from LeMill learning resource and pasted to Kupu.

Original text:

<p>See juhend sisaldab soovitusi seminari-, bakalaureuse- ja magistritööd kirjutavatele üliõpilastele. Juhendi koostamisel ja näidete juures on silmas peetud informaatika erialade spetsiifikat.</p>

http://lemill.org/trac/attachment/ticket/1742/copy-paste-text1.png?format=raw

Copy-pasted text:

<p>See juhend sisaldab soovitusi seminari-, bakalaureuse- ja
<br/>
magistritööd kirjutavatele üliõpilastele. Juhendi koostamisel ja
<br/>
näidete juures on silmas peetud informaatika erialade spetsiifikat.</p>

http://lemill.org/trac/attachment/ticket/1742/copy-paste-text2.png?format=raw

Line breaks are not visible in Kupu, only in the saved text block.

Attachments

copy-paste-text1.png (16.6 KB) - added by hans 12 years ago.
copy-paste-text2.png (34.9 KB) - added by hans 12 years ago.

Change History

Changed 12 years ago by hans

Changed 12 years ago by hans

comment:1 Changed 12 years ago by hans

  • Description modified (diff)

comment:2 Changed 12 years ago by hans

  • Description modified (diff)

comment:3 Changed 12 years ago by jukka

  • Owner changed from anonymous to jukka
  • Status changed from new to assigned

comment:4 Changed 12 years ago by jukka

  • Status changed from assigned to closed
  • Resolution set to fixed
  • Time remaining set to 0h

(In [2390]) Fixed #1742, and it was horrible, as line-endings can be CR, LF or CRLF, depending on text's origin. Took time to notice why regexs that work fine in test program fail inside lemill.

Note: See TracTickets for help on using tickets.