Ticket #9 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Saved text in notebooks is lost from GUI on file reload

Reported by: fperez Assigned to: tzanko
Priority: normal Milestone:
Component: nbshell Version:
Severity: normal Keywords:
Cc:

Description

Try making a notebook with text in it, saving it, closing nbshell, reopening it and reloading the .nbk file. While stdout in the terminal prints the blocks of text, they don't appear in the GUI.

Change History

09/04/05 03:36:23 changed by tzanko

  • status changed from new to assigned.

That is because the text must be valid xml. I know it's ugly, but that's the only sensible way to support the Docbook format that I can think of. Putting the text in <para> </para> tags will do the job. I can make the text blocks simply display the contents of <para> tags but then you won't be able to use titles, sections, equations and all the other stuff nbshell does not support. I'll try to come up with a better solution.

09/06/05 16:11:03 changed by Robert Kern <rkern@enthought.com>

If nbshell doesn't support titles, sections, equations, etc., then it doesn't support them. That's okay for now. Each text block should be its own <para> element. Users should not have to write or see XML markup in nbshell.

09/11/05 17:13:52 changed by tzanko

  • status changed from assigned to closed.
  • resolution set to fixed.

I made the necessary changes so users now can enter plain text in nbshell. Users can enter paragraphs, each paragraph separated with at least one empty line. These paragraphs are converted to <para> elements which disregard whitespace and newlines inside them, so the actual output to a PDF or HTML will be different than the one in nbshell.