Ignore:
Timestamp:
Oct 5, 2005, 7:28:40 PM (19 years ago)
Author:
mmc
Message:

Fixed "copy/paste with desktop" to convert any \r's to \n's.
This was a problem when pasting from Windows or Mac environments,
when what looked like a clean text file would paste badly into
a text area.

Fixed the Rappture::exec to cleanly separate stdout/stderr
channels. We were getting an error in Spice when a stderr
statement appeared right in the middle of a stdout line of data.
The line was truncated, so the value at the end was interpreted
as a very different number, causing a spike on the graph.
(Example: Common Collector Amplifier, and ".print ac im(vs)")

Fixed Field objects to respect the length scale set by the
overall structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/mainwin.tcl

    r45 r87  
    183183            set s [blt::cutbuffer get]
    184184            if {"" != $s && ![string equal $s $_sync(cutbuffer)]} {
     185                #
     186                # Convert any \r's in the cutbuffer to \n's.
     187                #
     188                if {[string first "\r" $s] >= 0} {
     189                    regsub -all "\r\n" $s "\n" s
     190                    regsub -all "\r" $s "\n" s
     191                    blt::cutbuffer set $s
     192                }
     193
    185194                set _sync(cutbuffer) $s
    186195
Note: See TracChangeset for help on using the changeset viewer.