On Mon, Oct 5, 2009 at 11:13 AM, Kevin <[email protected]> wrote:
> [^johnnyc-02.png class=right^]
>
> Is generating class right twice in the HTML output... like:
>
> <img src='http://sitename/home/files/johnnyc-02.png' class='right' alt=''
> class='right' width="200" height="211" />

I think this can be fixed by commenting out these lines in markups.php ~807-810

//                      foreach($args as $f => $v) {
//                              if (! in_array($f, BOLTattrs('img'))) continue;
//                              $attr .= "$f='$v' ";
//                              }

Seems this is being done twice. The first time in lines ~781-784.

> I also see an example of an unwanted <p>
>
> If I have at the very top of a page... no blank line starting the page.
>
> !This is a title
> [^johnnyc-02.png class=right^]`
> Hi and Welcome to my website.
>
> Meaning that I don't want there to be any line spaces between the header,
> the image and the first line.
>
> I would expect output like:
>
> <h1>This is a title</h1>
> <img src='http://sitename/home/files/johnnyc-02.png' class='right' alt=''
> width="200" height="211" />Hi and Welcome to my website.<br/>
>
> Instead I get:
>
> <h1>This is a title</h1>
> <p><img src='http://sitename/home/files/johnnyc-02.png' class='right' alt=''
> class='right' width="200" height="211" />Hi and Welcome to my website.</p>

Well this is exactly expected by existing rules. The `\n means delete
the line return (not ignore).  So the image and text become one line.
If followed by two line returns, the whole thing gets wrapped in p
tags. Depending on the style sheet you have this may or may not
produce a gap between the header and subheader lines. See

http://www.boltwire.com/index.php?p=test.lines

If you leave out the escape on the line return after the image, you
get a <br> after the image. Expected. But not the desired result...

> How do I get output without the paragraph?
>
> I would only expect that if I did.
>
> !This is a title
>
> [^johnnyc-02.png class=right^]`
> Hi and Welcome to my website.
>
> Next line.

If you don't have the ` you will erase the p tags. Another option is
to put a single space in the blank line just before the "Next line."
line. That will break the paragraph pattern.

Of course this is a hokey kind of workaround. What I'd really like to
see is a better systemic solution. For instance images could capture a
trailing \n and somehow mark it to ignore. But is that what we always
want?  What about the people that put a little smiley or logo at the
end of their paragraph? That would mess things up a bit. Maybe only if
it has a \n before and after the image.  But what if it is a link we
are floating over on the right side? You can see how complex this
gets...

I'm very much open to suggestions, for how to get intuitive line
spacing to work more perfectly. I'm not being hit with inspiration at
the moment...

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" 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/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to