Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3425 closed enhancement (fixed)

Retain font information when copying

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: normal Milestone: 1.9.4
Component: OMEdit Version: trunk
Keywords: Cc:

Description

I hope this ticket is not a duplicate.
I've tried to see whether there are other tickets on this subject, but I found none (maybe I myself wrote something, but I'm not sure...).

When from OMEdit some code is copied and then it is pasted in a to a different program, the font information is lost (font, style, color). At least it is lost when the text is pasted into Microsoft Word.
Also spaces at the beginning of rows, e.g. used to indent, are lost.

Instead, it would be nice to have this information kept. For instance, Dymola keeps the font information, when copying/pasting into Microsoft Word.

Behaviour observed using OpenModelica bf6ce68 (version reported by OMEdit)

Change History (7)

comment:1 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:2 by Adeel Asghar, 9 years ago

Status: newaccepted

This is now fixed in a development branch https://github.com/adeas31/OMEdit/commit/b3fe5dd0d096066f0308d751f87739578fa6b91c. The fix will be available in 1.9.4 final release.

comment:3 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: acceptedclosed

The fix is now available via the nightly build.

comment:4 by massimo ceraolo, 9 years ago

I've checked the fix.
Now colours are retained, but indentation is lost.

I hope a further fix is done to keep also indentations (i.e. spaces and/or tabls at the beginning of rows)

comment:5 by Adeel Asghar, 9 years ago

I have updated the code to retain the indentations c9ad9e9/OMEdit

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:7 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.