Re: Crash building TOC

This bug is fixed in the CVS base.
It was related to the CSS rule page-break-before associated with h2 
elements.
Thanks for reporting the bug.

Vincent.

On 6/18/10 19:47 , Juan Lanus wrote:
> Hi There,
> Is somebody experiencing a crash of 11.3.1 when using the "add/uptate 
> table of content" command?
> The command only works if I unlink the document's CSS file and restart 
> Amaya.
> The TOC view works OK, the issue is trying to insert the toc near the 
> top of the document.
> Am I the only one having this issue?
> The CSS is pasted below. I already tried deleting any "strange" 
> options, like the running section numbers and the tagged links, the 
> @medis sections, ... and the crash still happens.
> Amaya "thinks" for a second and crashes in flames.
> I had the same problem last year and inlined the CSS as a workaround.
> But I wold like a real solution that lets me leverage the external CSS 
> files advantage.
> Saludos!
> --
> Juan Lanus
>
>       p                     { font-family: Arial; }
>       h1                    { font-family: Arial; }
>       h2                    { font-family: Arial; }
>       h3                    { font-family: Arial; }
>       h4                    { font-family: Arial; }
>       h5                    { font-family: Arial; }
>       h6                    { font-family: Arial; }
>     /* running section numbers 
> file:///C:/CAFAM/docs/noticias/satisfactoresCompleto.html    */
>     /* weird: couldn't get chapter numbers to work with the increment 
> tied to the h2 tag */
>       .chapter              {counter-increment: numH2; }
>       h1                    {counter-reset: numH2, 1; }
>       h2:before             {content: counter(numH2, decimal) " - ";  }
>       h3                    {counter-increment: numH3; }
>       h2                    {counter-reset: numH3; }
>       h3:before             {content: counter(numH2, decimal) "." 
> counter(numH3, decimal) " "; }
>       h4                    {counter-increment: numH4; }
>       h3                    {counter-reset: numH4; }
>       h4:before             {content: counter(numH2, decimal) "." 
> counter(numH3, decimal) "." counter(numH4, decimal) " "; }
>       .blockH2              {                   }
>       .blockH3              { margin-left: 0em; }
>       .blockH4              { margin-left: 2em; }
>       .blockH5              { margin-left: 2em; }
>       .blockH6              { margin-left: 2em; }
>   /* links en el encabezado de página de agenda */
>       .extLink              { color: blue; }
>       body                  { margin: 0px; margin-left: 8px; 
>  font-size: 100%;  }
>       html,body             { height: 100%; margin-top: 0px; 
> font-family: Arial; }
>   /* DO NOT tag external links with the ejected arrow */
>       /* a[href^="http:"]      { background: url(linkOut.png) 
> no-repeat right bottom; padding-right: 13px; } */
>       /* a[href^="https:"]     { background: url(linkOut.png) 
> no-repeat right bottom; padding-right: 13px; } */
>       /* a[href^="http://sol."] { background-image: none; 
> padding-right: 0px; } */
>   /* tag wikipedia and SEI links with their logo */
>        a[href^="http://en.wikipedia.org"] { background: 
> url(WikipediA.gif) no-repeat left 50%; padding-left: 24px; }
>        a[href^="http://www.sei.cmu.edu"] { background: url(sei.ico) 
> no-repeat left 50%; padding-left: 30px; margin-left: -4px;  }
> /* - - - - - - - - - - - - - - - - - - - */
>       .imgL                 { float: left; margin-right: 2em; }
>       .imgR                 { float: right; margin-left: 2em; }
>       .doneItem             { color: #c0c0c0; }
>   /************ fixed header *****************/
>       .fixedHeader          { position: fixed; top: 0px; left: 0px; 
> background-color: #fffff0; width: 100%; z-index: 99; border-bottom: 
> 4px solid #e0e0e0; }
>       .fixedHeader h1       { padding: 0px; }
>   /************ table of contents ************/
>       .toc                  { font-size: 80%; line-height: 80%; 
> margin-left: 8em; }
>       .toc a                { color: navy; text-decoration: none; }
>       .toc ul               { list-style-type: none; }
>       .toc li               { margin-bottom: 3px; }
>       div.toc > ul > li > a { font-weight: 700; line-height: 100%; }
>   /*******************************************/
>       .compactList li       { margin-top: 0px; margin-bottom: 1px; }
>       .compactList          { margin-top: 8px; margin-bottom: 4px; }
>       .small80              { font-size: 80%; }
>       .small80 th           { font-size: 110%; }
>       .small70              { font-size: 70%; }
>       .small80 th           { font-size: 120%; }
>       .framed               { border: 1px solid #c0c0c0; margin: 6px; 
> padding: 6px; }
>       .msgToSelf            { border: 1px solid gray; 
> background-color: yellow; padding-left: 2px; padding-right: 2px; }
>       .msgToSelf            { opacity: .80; }
>       .item                 { border: 1px solid silver; margin-bottom: 
> 1ex; padding-left: 1ex; }
>       ul, ol                { margin-top: 2px; margin-bottom : 8px; 
> margin-left : 0.2em; padding-left : 1em; }
>       p                     { margin-top: 6px; margin-bottom: 0px; 
> padding-top: 1px; }
>       li                    { margin-left: 8px; margin-top : 2px; 
> margin-bottom : 8px; }
>       li p                  { margin-top: 2px; margin-bottom: 6px; }
>       table                 { border-collapse: collapse; empty-cells: 
> show; }
>       th                    { font-size: 70%; background-color: 
> #f1f1f1; opacity: 0.8; }
>       td                    { vertical-align: top; padding-left: 2px; 
> padding-right: 2px; padding-top: 1px; padding-bottom: 1px; }
>       .borderTable table    { border: 1px solid silver; }
>       .borderTable td       { border: 1px solid silver; }
>       .borderTable th       { border: 1px solid silver; }
>       h1                    { font-size : 180%; margin-top: 2em; 
> margin-bottom: 2em; text-align: center;}
>       h2                    { page-break-before: always; }
>       h3                    { font-size: 120%; margin-top: 2em; 
> margin-bottom: 1em; }
>       h4                    { font-size: 110%; font-variant: small-caps; }
>       h5                    { text-decoration : none; font-size: 100%; 
> font-weight: 600; }
>       h6                    { font-size: 95%; font-style: italic; 
> font-weight: 600; }
>       h3, h4, h5, h6        {  }
>       blockquote            { margin-top : 4px; margin-bottom : 2px; }
>       ul, ol                { margin-top : 0px; margin-bottom : 2px; 
> margin-left : 4px; }
>       img                   { border-width : 0px 0px 0px 0px; }
>       .wideImage            { margin-left: -4em; }
>       hr                    { color: #808080; background-color: 
> #808080; height: 1px; width: 100%; border: 0px; }
>       .chapter              { page-break-before: always; }
>       .printInNewPage       { page-break-before: always; }
>
>     /* @media screen { */
>       a                     { text-decoration: none; color: #000080; }
>       a:visited             { text-decoration: underline; }
>       a:hover               { background-color: #ffffd0; 
> text-decoration : underline; color: #0000ff; }
>       .toc a                { color: navy; text-decoration: none; }
>       body                  { background-image: url("flechaBG.gif"); 
> background-repeat: no-repeat;
>                               background-position: center 150px; 
> background-attachment: fixed; }
>       .textColumn           { max-width: 58em; }
>       .chapter h2           { margin-top: 4em;  margin-bottom: 2em;  }
>       ins                   { color: inherit; text-decoration: 
> inherit; background-color: #f8f8e8;  }
>     /* }*/
>
>
>     @media print {
>       .chapter              { page-break-before: always; }
>       ins                   { color: inherit; text-decoration: 
> inherit; background-color: inherit;  }
>       .printInNewPage       { page-break-before: always; }
>       a                     { text-decoration : none; color: gray; }
>       a:link                { text-decoration : none; color: gray; }
>       a:visited             { text-decoration : none; color: gray; }
>       a:hover               { text-decoration : none; color: gray; }
>       /* DO NOT tag external links with the out-of-here arrow */
>       /* a[href^="http:"]      { padding-left: inherit; } */
>       /* a[href^="https:"]     { padding-left: inherit; } */
>       /* DO NOT print links href except for class "printNoLinks" */
>       /* a:after               { content: " [" attr(href) "]"; 
> font-size: 75%; } */
>       .printNoLinks a:after { content: ""; }
>       .toc a:after          { content: ""; }
>       h3 a:after            { content: ""; }
>       a:after.printNoLinks  { content: ""; }
>       img.wideImage         { width: 100%; }
>       /* tag class for display-only contrent */
>       .noPrint              { display: none; }
>     }

Received on Thursday, 22 July 2010 11:02:33 UTC