[sage-support] Re: formatting not saved in notebooks

2008-10-14 Thread Stan Schymanski

Sorry, I forgot that there is already a trac ticket on this (#4217). I
posted an example on 30 September and it's still in the thread.

Basically, a cell like that:

%hide
%html
This is a cell with a long line of text bla bla bla bla bla bla bla...

gives a nicely formatted output with line breaks etc. when evaluated.
However, if the notebook is closed and re-opened, all the text appears
in a single line and with a different format (Courier on my system).
The same happens if you evaluate the cell, then click on "Edit" and
then on "Save Changes" without having done any changes.

This gets a bit annoying if you create a longer html text, because you
then need to scroll sideways to read the text after re-opening the
notebook. Or just evaluate the text cell again, which is a lot
easier. :)

Thanks for thinking about it.

Stan

On Oct 14, 11:25 am, Jason Grout <[EMAIL PROTECTED]> wrote:

> Could you post an example worksheet, exactly what things you do to have
> the problem, what you see, and what you expect to have happen?  That
> would help us nail down exactly what might be the problem.
>
> Thanks,
>
> Jason
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-10-14 Thread Jason Grout

Stan Schymanski wrote:
> Dear all,
> 
> I just installed sage 3.1.3.rc0 and the problem about losing the html
> formatting in notebook cells is still there. Does anyone have an idea
> how to fix this? Isn't anyone else annoyed by this?? Or am I doing
> something wrong?


Could you post an example worksheet, exactly what things you do to have 
the problem, what you see, and what you expect to have happen?  That 
would help us nail down exactly what might be the problem.

Thanks,

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-10-14 Thread Stan Schymanski

Dear all,

I just installed sage 3.1.3.rc0 and the problem about losing the html
formatting in notebook cells is still there. Does anyone have an idea
how to fix this? Isn't anyone else annoyed by this?? Or am I doing
something wrong?

Thanks again for your help!

Regards,
Stan
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-09-30 Thread Stan Schymanski

By the way, I also lose the formatting if I click on "Edit", and then
"Save changes". If I just close the browser window and then re-open
the still running notebook in a new browser window, all the previously
evaluated cells still show up alright (Times with proper line breaks).
Only if I quit the worksheet or edit its text version are the line
breaks lost and the font turns into Courier.

Hope this helps to track it down.

Cheers
Stan
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-09-30 Thread Stan Schymanski

Hi Mike,

Thanks for checking. Here is the text version of a notebook I made to
try it out:

save_bug
system:sage

{{{id=0|
%hide
%html
Saving evaluated html in notebook
///

Saving evaluated html in notebook
}}}

{{{id=1|
%hide
%html
If the cells are evaluated, the text appears in Times New Roman, but
if the notebook is closed and then re-opened, the text becomes Courier
without line breaks, making it very inconvenient to read.
///

If the cells are evaluated, the text appears
in Times New Roman, but if the notebook is closed and then re-opened,
the text becomes Courier without line breaks, making it very
inconvenient to read.
}}}

{{{id=2|

///
}}}

If I do Save & quit, and then re-open, the text version becomes:

save_bug
system:sage

{{{id=0|
%hide
%html
Saving evaluated html in notebook
///
Saving evaluated html in notebook
}}}

{{{id=1|
%hide
%html
If the cells are evaluated, the text appears in Times New Roman, but
if the notebook is closed and then re-opened, the text becomes Courier
without line breaks, making it very inconvenient to read.
///
If the cells are evaluated, the text appears
in Times New Roman, but if the notebook is closed and then re-opened,
the text becomes Courier without line breaks, making it very
inconvenient to read.
}}}

{{{id=2|

///
}}}


The only difference I can see is a missing empty line after /// when
the document was saved and re-opened. Can this cause the problem? I'm
using sage 3.1.2 with Firefox 3.0.3 on a Intel Mac with OSX 10.4.

Cheers,
Stan


On Sep 29, 10:07 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
> Hello,
> I'm not able to reproduce this on my machine.  Could you makes a
> specific list of thing you do to reproduce this on your system?
>
> Thanks,
> Mike
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-09-29 Thread Mike Hansen

Hello,

On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski <[EMAIL PROTECTED]> wrote:
> As of version 3.1.2, plots are saved correctly in notebooks. Thanks to
> those that fixed it. However, I noticed that the formatting of cells
> beginning with "%hide %html" is not saved. I need to re-evaluate all
> of those cells to get the formatting back. Is this a bug in SAGE or
> does it have something to do with the web browser (Firefox 3.0.3 on
> Mac OS X 10.4)?

I'm not able to reproduce this on my machine.  Could you makes a
specific list of thing you do to reproduce this on your system?

Thanks,
Mike

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-09-29 Thread mabshoff



On Sep 29, 10:17 am, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski <[EMAIL PROTECTED]> wrote:
>
> > Dear all,
>
> > As of version 3.1.2, plots are saved correctly in notebooks. Thanks to
> > those that fixed it. However, I noticed that the formatting of cells
> > beginning with "%hide %html" is not saved. I need to re-evaluate all
> > of those cells to get the formatting back. Is this a bug in SAGE or
> > does it have something to do with the web browser (Firefox 3.0.3 on
> > Mac OS X 10.4)?
>
> > Thanks again for the great effort!
>
> This is definitely a bug.  If it isn't listed at trac.sagemath.org somewhere,
> I hope somebody adds it, so it will get fixed.

This does not seem to be in trac, so I made this #4217.

> William

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: formatting not saved in notebooks

2008-09-29 Thread William Stein

On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski <[EMAIL PROTECTED]> wrote:
>
> Dear all,
>
> As of version 3.1.2, plots are saved correctly in notebooks. Thanks to
> those that fixed it. However, I noticed that the formatting of cells
> beginning with "%hide %html" is not saved. I need to re-evaluate all
> of those cells to get the formatting back. Is this a bug in SAGE or
> does it have something to do with the web browser (Firefox 3.0.3 on
> Mac OS X 10.4)?
>
> Thanks again for the great effort!

This is definitely a bug.  If it isn't listed at trac.sagemath.org somewhere,
I hope somebody adds it, so it will get fixed.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---