On Nov 9, 11:02 pm, "Edward K. Ream" <[email protected]> wrote:
> On Oct 28, 2:49 am, zpcspm <[email protected]> wrote:
>
> > Sometimes I have to look at badly aligned HTML code and keep asking
> > myself questions like "here's the opening tag, I wonder where it
> > closes".
>
> To be clear, rev 4767 imports data.html properly.
>
> Edward

Thanks for your work on this, Edward, I am using the same data.html
that I've sent you as reference and after updating leo to r4767 the
import looks much better. However, I still can see some glitches, so
I'd like to check maybe I am missing something.

So, importing the file creates a bigger outline with more nodes as
tags - this is the good part.

There's still nodes with wrong content in body. For example I get a
node with head "p" and body:

<p>
@others
</TD></TR></TABLE></p>

It has a child node with head "div" and body:

<TABLE border="0" cellspacing="3" align="center" width="98%"><TR><TD
class="title"><div align="center">List of Non-Compliant Issues</div>

It looks like leo still makes a difference between lowercase and
uppercase tags when importing HTML.

My next step was to copy the setting @date import_html_tags from
leoSettings.leo to myLeoSettings.leo and double its content by
appending the whole list of tags in uppercase one more time (just in
case if I'm expected to do that) and try importing data.html again. I
have restarted leo completely before importing again, to make sure
changes from myLeoSettings.leo would get considered. Results are still
the same - some nodes don't have adequate values in their bodies.

Other problems I have noticed in this setup:

- for some reason there's a "data declarations" node which contains

<html>
<head>
<link rel="stylesheet" href="/css/common/main.css" type="text/css">
<link rel='stylesheet' href='/css/floorstatus.css' type='text/css'>

in body.

- there's no "body" node, for some reason <body> tag is inside a
"script" node. It is easy to find this if you search the outline for
"<body" string.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to