formatting not saved in notebooks

2 views
Skip to first unread message

Stan Schymanski

unread,
Sep 29, 2008, 10:00:36 AM9/29/08
to sage-support
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!

Stan

William Stein

unread,
Sep 29, 2008, 1:17:34 PM9/29/08
to sage-s...@googlegroups.com

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

mabshoff

unread,
Sep 29, 2008, 2:14:03 PM9/29/08
to sage-support


On Sep 29, 10:17 am, "William Stein" <wst...@gmail.com> wrote:
This does not seem to be in trac, so I made this #4217.

> William

Cheers,

Michael

Mike Hansen

unread,
Sep 29, 2008, 4:07:42 PM9/29/08
to sage-s...@googlegroups.com
Hello,

On Mon, Sep 29, 2008 at 7:00 AM, Stan Schymanski <schy...@gmail.com> 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

Stan Schymanski

unread,
Sep 30, 2008, 4:25:42 AM9/30/08
to sage-support
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
<h1>Saving evaluated html in notebook
///

<html><font color='black'><h1>Saving evaluated html in notebook</
font></html>
}}}

{{{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.
///

<html><font color='black'>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.</font></html>
}}}

{{{id=2|

///
}}}

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

save_bug
system:sage

{{{id=0|
%hide
%html
<h1>Saving evaluated html in notebook
///
<html><font color='black'><h1>Saving evaluated html in notebook</
font></html>
}}}

{{{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.
///
<html><font color='black'>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.</font></html>
}}}

{{{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" <mhan...@gmail.com> wrote:
> Hello,

Stan Schymanski

unread,
Sep 30, 2008, 4:45:29 AM9/30/08
to sage-support
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

Stan Schymanski

unread,
Oct 14, 2008, 3:45:04 AM10/14/08
to sage-support
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

Jason Grout

unread,
Oct 14, 2008, 5:25:36 AM10/14/08
to sage-s...@googlegroups.com
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

Stan Schymanski

unread,
Oct 14, 2008, 5:55:00 AM10/14/08
to sage-support
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
Reply all
Reply to author
Forward
0 new messages